Unverified Commit 9406ebcb authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Only call Activity.reportFullyDrawn on Lollipop or above (#28175)

This API requires the UPDATE_DEVICE_STATS permission on KitKat
parent 751f119c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment