Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd8f4291 authored by Sunny Goyal's avatar Sunny Goyal Committed by android-build-merger
Browse files

Start settings activity in a new task, so that if the LauncherActivity...

Start settings activity in a new task, so that if the LauncherActivity finishes from behind, the task does not enter an inconsistant state
am: 53f93b9c

Change-Id: I9a21552903d44b468d42efebbe60353b9b0c91a5
parents 825c3db1 53f93b9c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2571,6 +2571,7 @@ public class Launcher extends BaseActivity
        Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES)
                .setPackage(getPackageName());
        intent.setSourceBounds(getViewBounds(v));
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent, getActivityLaunchOptions(v));
    }