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

Commit b1bb773

Browse files
dnfieldtvolkert
authored andcommitted
Raise API level for reportFullyDrawn (#14146) (#15937)
1 parent a433ed9 commit b1bb773

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shell/platform/android/io/flutter/embedding/android/FlutterActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,9 @@ public boolean shouldAttachEngineToActivity() {
938938
public void onFlutterUiDisplayed() {
939939
// Notifies Android that we're fully drawn so that performance metrics can be collected by
940940
// Flutter performance tests.
941-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
941+
// This was supported in KitKat (API 19), but has a bug around requiring
942+
// permissions. See https://github.com/flutter/flutter/issues/46172
943+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
942944
reportFullyDrawn();
943945
}
944946
}

0 commit comments

Comments
 (0)