From c70238c22ace81442dd7d9b2cee34bd12cdf1e38 Mon Sep 17 00:00:00 2001 From: Lucas Silva Date: Fri, 21 Jan 2022 22:46:31 +0000 Subject: [PATCH] Open dream customization activity full-screen. Current behavior is for the 3P dream settings activity to be embedded in Settings. However, since the 3P activity may have a different theme than Settings, we should open it in a separate fullscreen activity. Test: locally on device Bug: 215733289 Change-Id: I9ced996b47cede874a5c6e8ac0c84914693f527c --- .../src/com/android/settingslib/dream/DreamBackend.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/SettingsLib/src/com/android/settingslib/dream/DreamBackend.java b/packages/SettingsLib/src/com/android/settingslib/dream/DreamBackend.java index 3c444f2b95b3b..7168f3cf1f9cd 100644 --- a/packages/SettingsLib/src/com/android/settingslib/dream/DreamBackend.java +++ b/packages/SettingsLib/src/com/android/settingslib/dream/DreamBackend.java @@ -402,7 +402,10 @@ public class DreamBackend { if (dreamInfo == null || dreamInfo.settingsComponentName == null) { return; } - uiContext.startActivity(new Intent().setComponent(dreamInfo.settingsComponentName)); + final Intent intent = new Intent() + .setComponent(dreamInfo.settingsComponentName) + .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + uiContext.startActivity(intent); } public void preview(DreamInfo dreamInfo) {