mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Suppress deprecation warning for usage of Configuration.locale (flutter/engine#7973)
This commit is contained in:
parent
33300015b2
commit
930fcb8c2a
@ -311,6 +311,7 @@ public class FlutterView extends SurfaceView
|
||||
.send();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void sendLocalesToDart(Configuration config) {
|
||||
List<Locale> locales = new ArrayList<>();
|
||||
if (Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user