Skip to content

Commit 40568ec

Browse files
ShridharGoeldomdomegg
authored andcommitted
Fix commons-app#2394: Prevent crash while navigating between Explore and Achievements (commons-app#2395)
1 parent 16df68a commit 40568ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/fr/free/nrw/commons/achievements/AchievementsActivity.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ private void inflateAchievements(Achievements achievements) {
363363
*/
364364
public static void startYourself(Context context) {
365365
Intent intent = new Intent(context, AchievementsActivity.class);
366-
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
367-
intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
366+
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);
368367
context.startActivity(intent);
369368
}
370369

0 commit comments

Comments
 (0)