fix back on main activity
This commit is contained in:
parent
76b5c99f7f
commit
c6d17d7589
2 changed files with 2 additions and 5 deletions
|
|
@ -41,7 +41,7 @@ public class NavigationUtil {
|
|||
public static void goToMain(@NonNull final Context context) {
|
||||
final Intent intent = new Intent(context, MainActivity.class);
|
||||
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
context.startActivity(intent);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue