mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Disable a deprecation warning for use of a TaskDescription constructor for older platforms (#11029)
This commit is contained in:
parent
5bb144ca8b
commit
8569edc551
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user