Fix #2200: Prevent app from closing while navigating to Home (#2204)

* Fix #2200 Prevent app from closing while navigating to Home
* Add workaround for reorder activity Android bug in some API levels
This commit is contained in:
Shridhar Goel 2018-12-22 18:57:47 +05:30 committed by Adam Jones
parent 493fa6b721
commit b447612cc5
6 changed files with 37 additions and 6 deletions

View file

@ -136,7 +136,7 @@ public class NotificationActivity extends NavigationBaseActivity {
public static void startYourself(Context context) {
Intent intent = new Intent(context, NotificationActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);
context.startActivity(intent);
}