Fix #2394: Prevent crash while navigating between Explore and Achievements (#2395)

This commit is contained in:
Shridhar Goel 2019-03-17 20:59:24 +05:30 committed by Adam Jones
parent 16df68a073
commit 40568eccf8

View file

@ -363,8 +363,7 @@ public class AchievementsActivity extends NavigationBaseActivity {
*/
public static void startYourself(Context context) {
Intent intent = new Intent(context, AchievementsActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);
context.startActivity(intent);
}