From 4429ee6d93b955ec492b618ebf1fffe96f12bf4a Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Mon, 4 May 2020 12:44:41 -0400 Subject: [PATCH] Fix redlines and strings in Controls dialog Also, make sure that it appears on top of the app Fixes: 155205745 Test: manual Change-Id: I56ebae4ef6bdf1c89850a4ad70be05b37e3cd0cb --- packages/SystemUI/AndroidManifest.xml | 2 +- packages/SystemUI/res/layout/controls_dialog.xml | 2 -- packages/SystemUI/res/values/dimens.xml | 2 +- packages/SystemUI/res/values/strings.xml | 6 +++--- packages/SystemUI/res/values/styles.xml | 6 +++++- .../systemui/controls/management/ControlsRequestReceiver.kt | 1 + 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 1306657ae403f..393674372d815 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -718,7 +718,7 @@ android:finishOnCloseSystemDialogs="true" android:showForAllUsers="true" android:clearTaskOnLaunch="true" - android:launchMode="singleTask" + android:launchMode="singleInstance" android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation|keyboard|keyboardHidden" android:excludeFromRecents="true" android:visibleToInstantApps="true"/> diff --git a/packages/SystemUI/res/layout/controls_dialog.xml b/packages/SystemUI/res/layout/controls_dialog.xml index 3effaf5fac5bc..5ce9916b04891 100644 --- a/packages/SystemUI/res/layout/controls_dialog.xml +++ b/packages/SystemUI/res/layout/controls_dialog.xml @@ -18,8 +18,6 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:padding="@dimen/controls_dialog_padding" - android:layout_margin="@dimen/controls_dialog_padding" > 2dp 15 - 8dp + 32dp 200dp diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 2b3e661c4f7ea..96843f187f727 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -2710,9 +2710,9 @@ Add to device controls - Add to favorites - - %s suggested this control to add to your favorites. + Add + + Suggested by %s Controls updated diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 6e25625d3b884..b5e7f4bc061e6 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -768,6 +768,10 @@ 16sp -