Skip to content

Commit

Permalink
Raise API level for reportFullyDrawn (flutter#14146)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Dec 5, 2019
1 parent 84497ba commit 2a1ade7
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -938,7 +938,9 @@ public boolean shouldAttachEngineToActivity() {
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();
}
}
Expand Down

0 comments on commit 2a1ade7

Please sign in to comment.