We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c35d11 + 20fe537 commit 5b4a579Copy full SHA for 5b4a579
core/java/android/nfc/NfcActivityManager.java
@@ -114,6 +114,10 @@ public NfcActivityState(Activity activity) {
114
if (activity.getWindow().isDestroyed()) {
115
throw new IllegalStateException("activity is already destroyed");
116
}
117
+ // Check if activity is resumed right now, as we will not
118
+ // immediately get a callback for that.
119
+ resumed = activity.isResumed();
120
+
121
this.activity = activity;
122
registerApplication(activity.getApplication());
123
0 commit comments