diff --git a/packages/SystemUI/res/layout/controls_management.xml b/packages/SystemUI/res/layout/controls_management.xml index 34a966ceea754..9d5eb63ba7958 100644 --- a/packages/SystemUI/res/layout/controls_management.xml +++ b/packages/SystemUI/res/layout/controls_management.xml @@ -105,7 +105,7 @@ android:id="@+id/done" android:layout_width="wrap_content" android:layout_height="match_parent" - android:text="Done" + android:text="@string/save" style="@*android:style/Widget.DeviceDefault.Button.Colored" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent" @@ -114,4 +114,4 @@ - \ No newline at end of file + diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 6905de2d9c4fe..f71c0b39c62aa 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -2635,13 +2635,15 @@ Magnification Window Controls - + Quick Controls + + Add controls for your connected devices Add Controls - Choose an app from which to add controls + Choose app to add controls %s control added. @@ -2651,7 +2653,9 @@ Controls - Choose controls for quick access + Choose controls to access from the power menu + + Hold and drag a control to move it The list of all controls could not be loaded. @@ -2659,21 +2663,35 @@ Other - Add to Quick Controls + Add to quick controls Add to favorites %s suggested this control to add to your favorites. + + Controls updated PIN contains letters or symbols - Verify device PIN + Verify %s + + Verifying\u2026 Enter PIN + + Enter passphrase + + Try another PIN + + Try another passphrase + + Confirming\u2026 + + Confirm change for %s - Swipe to see other structures + Swipe to see more @@ -2681,4 +2699,18 @@ Close this media session + + + Inactive, check app + + Error, try again + + In progress + + Hold Power button to see new controls + + + Add controls + + Edit controls diff --git a/packages/SystemUI/src/com/android/systemui/controls/ui/ChallengeDialogs.kt b/packages/SystemUI/src/com/android/systemui/controls/ui/ChallengeDialogs.kt index 2494fd119670c..15c2a0afe8191 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/ui/ChallengeDialogs.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/ui/ChallengeDialogs.kt @@ -50,7 +50,8 @@ object ChallengeDialogs { cvh.context, android.R.style.Theme_DeviceDefault_Dialog_Alert ).apply { - setTitle(R.string.controls_pin_verify) + val res = cvh.context.resources + setTitle(res.getString(R.string.controls_pin_verify, *arrayOf(cvh.title.getText()))) setView(R.layout.controls_dialog_pin) setPositiveButton( android.R.string.ok,