mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
* 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:
parent
493fa6b721
commit
b447612cc5
6 changed files with 37 additions and 6 deletions
|
|
@ -54,7 +54,7 @@ public class BookmarksActivity extends NavigationBaseActivity
|
|||
*/
|
||||
public static void startYourself(Context context) {
|
||||
Intent intent = new Intent(context, BookmarksActivity.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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue