Skip to content

Commit

Permalink
Fixed app open on cold start from notification
Browse files Browse the repository at this point in the history
* Main activity wasn't luanching when tapping on a notification that
resulted in the app being cold started.
* This was fixed by adding a missing startActivity and removing an
unneeded PendingIntent
* This was a bug interduced in PR #1192 in 4.0.0 release
  • Loading branch information
jkasten2 committed Feb 3, 2021
1 parent 4b804ab commit 0326d93
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2178,10 +2178,11 @@ static boolean startOrResumeApp(Activity inContext) {
inContext.startActivity(launchIntent);
} else {
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
PendingIntent.getActivity(inContext, 0, launchIntent, 0);
inContext.startActivity(launchIntent);
}
return true;
}

return false;
}

Expand Down

0 comments on commit 0326d93

Please sign in to comment.