Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 513a2d14 authored by Martijn Coenen's avatar Martijn Coenen Committed by The Android Automerger
Browse files

Make sure initial activity state is correct.

Change-Id: Ic6199b42e59afa06a0f38f866e2924b84cd234b3
parent e0bada37
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -114,6 +114,10 @@ public final class NfcActivityManager extends INdefPushCallback.Stub
            if (activity.getWindow().isDestroyed()) {
                throw new IllegalStateException("activity is already destroyed");
            }
            // Check if activity is resumed right now, as we will not
            // immediately get a callback for that.
            resumed = activity.isResumed();

            this.activity = activity;
            registerApplication(activity.getApplication());
        }