We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d7e906 commit 20fe537Copy full SHA for 20fe537
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