Skip to content

Commit

Permalink
fix: Only call Activity.reportFullyDrawn on Lollipop or above
Browse files Browse the repository at this point in the history
  • Loading branch information
doomsower committed Mar 5, 2020
1 parent 5683066 commit 86b1281
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public String getName() {
public void getTimeSinceStartup(Promise promise) {
int ms = (int) (SystemClock.uptimeMillis() - startMark);
Activity activity = getCurrentActivity();
if (activity != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if (activity != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
activity.reportFullyDrawn();
}
promise.resolve(ms);
Expand Down

0 comments on commit 86b1281

Please sign in to comment.