mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Only call Activity.reportFullyDrawn on Lollipop or above (#28175)
This API requires the UPDATE_DEVICE_STATS permission on KitKat
This commit is contained in:
parent
751f119c93
commit
9406ebcbaf
@ -29,7 +29,7 @@ public class MainActivity extends FlutterActivity {
|
||||
@Override
|
||||
public void onFirstFrame() {
|
||||
// Report fully drawn time for Play Store Console.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
MainActivity.this.reportFullyDrawn();
|
||||
}
|
||||
MainActivity.this.getFlutterView().removeFirstFrameListener(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user