You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionLifecycleNotifier.java
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,33 @@ <T, A extends Activity> Task<T> applyToNullableForegroundActivity(
160
160
});
161
161
}
162
162
163
+
/**
164
+
* Apply a function to a foreground activity, when one is available, returning a {@link Task} that
165
+
* will complete with the result of the Task returned by that function.
166
+
*
167
+
* <p>If the foreground activity is of type {@code classToIgnore}, the previously active activity
168
+
* will be passed to the function, which may be null if there was no previously active activity or
169
+
* the activity has been destroyed.
170
+
*
171
+
* <p>The continuation function will be called immediately once the activity is available. This
172
+
* may be on the main thread or the calling thread, depending on whether or not there is already a
173
+
* foreground activity available when this method is called.
0 commit comments