Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8569edc

Browse files
Disable a deprecation warning for use of a TaskDescription constructor for older platforms (#11029)
1 parent 5bb144c commit 8569edc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/android/io/flutter/plugin/platform/PlatformPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ private void setSystemChromePreferredOrientations(int androidOrientation) {
136136
activity.setRequestedOrientation(androidOrientation);
137137
}
138138

139+
@SuppressWarnings("deprecation")
139140
private void setSystemChromeApplicationSwitcherDescription(PlatformChannel.AppSwitcherDescription description) {
140141
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
141142
return;

0 commit comments

Comments
 (0)