Disable a deprecation warning for use of a TaskDescription constructor for older platforms (#11029)

This commit is contained in:
Jason Simmons 2019-08-15 15:22:37 -07:00 committed by GitHub
parent 5bb144ca8b
commit 8569edc551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,7 @@ public class PlatformPlugin {
activity.setRequestedOrientation(androidOrientation);
}
@SuppressWarnings("deprecation")
private void setSystemChromeApplicationSwitcherDescription(PlatformChannel.AppSwitcherDescription description) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
return;