Skip to content

Commit cc6d48f

Browse files
authored
Log notification open after onActivityCreated() on Android 7.1. (#3579)
#3432 * Also included delaying checking for notification open logging on Android 7.1 (N MR1/25) to avoid Bundle unparceling race condition.
1 parent 3aaf7ad commit cc6d48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase-messaging/src/main/java/com/google/firebase/messaging/FcmLifecycleCallbacks.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public void onActivityCreated(Activity createdActivity, Bundle instanceState) {
4242
return;
4343
}
4444

45-
if (VERSION.SDK_INT <= VERSION_CODES.N) {
46-
// On Android 7.0 and lower Bundle unparceling is not thread safe. Wait to log notification
45+
if (VERSION.SDK_INT <= VERSION_CODES.N_MR1) {
46+
// On Android 7.1 and lower Bundle unparceling is not thread safe. Wait to log notification
4747
// open after Activity.onCreate() has completed to try to avoid race conditions with other
4848
// code that may be trying to access the Intent extras Bundle in onCreate() on a different
4949
// thread.

0 commit comments

Comments
 (0)