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

finishes from behind, the task does not enter an inconsistant state

Bug: 37921974
Change-Id: I5f943ae89ce1099d3b9cf6a4902c7fd077beb764
This commit is contained in:
Sunny Goyal
2017-05-04 11:23:29 -07:00
parent 8f4a3963b0
commit 53f93b9c15
+1
View File
@@ -2555,6 +2555,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));
}