Suppress deprecation warning for usage of Configuration.locale (flutter/engine#7973)

This commit is contained in:
Jason Simmons
2019-02-26 17:03:10 -08:00
committed by GitHub
parent 33300015b2
commit 930fcb8c2a

View File

@@ -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) {