Raise API level for reportFullyDrawn (flutter/engine#14146)

This commit is contained in:
Dan Field 2019-12-05 14:51:55 -08:00 committed by GitHub
parent e479d6ad89
commit 168f41ba44

View File

@ -938,7 +938,9 @@ public class FlutterActivity extends Activity
public void onFlutterUiDisplayed() {
// Notifies Android that we're fully drawn so that performance metrics can be collected by
// Flutter performance tests.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
// This was supported in KitKat (API 19), but has a bug around requiring
// permissions. See https://github.com/flutter/flutter/issues/46172
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
reportFullyDrawn();
}
}