Add message in dialog shown on choosing separate private space lock

Change to add message in the dialog shown on selecting to choose a new
profile lock for private space.

screenshot : go/ss/ASkBCFJuCzp7dkf.png

Bug: 330218365
Test: Manual. Diaog shown as per UX mock
Change-Id: I17f4d7ebf515dc7c95fcae7a5ec5edeb9918ded3
This commit is contained in:
josephpv
2024-03-18 22:34:02 +00:00
committed by Joseph Vincent
parent e6a759303c
commit 6a3bd88078
2 changed files with 5 additions and 2 deletions

View File

@@ -1236,8 +1236,10 @@
<string name="private_space_category_ways_to_unlock">Ways to unlock</string>
<!-- Summary for one lock when device screen lock is used as private profile lock. [CHAR LIMIT=40] -->
<string name="private_space_screen_lock_summary">Same as device screen lock</string>
<!-- Dialog message to choose a new lock for Private Space. [CHAR LIMIT=50] -->
<!-- Dialog title to choose a new lock for Private Space. [CHAR LIMIT=50] -->
<string name="private_space_new_lock_title">Choose a new lock for private space?</string>
<!-- Dialog message mentioning device PIN, pattern or password needs to be entered on the next screen. [CHAR LIMIT=NONE] -->
<string name="private_space_new_lock_message">You\ll need to enter your device PIN, pattern, or password on the next screen</string>
<!-- Title for the preference for auto lock private space and auto lock private space settings page. [CHAR LIMIT=50] -->
<string name="private_space_auto_lock_title">Lock private space automatically</string>
<!-- Description for private space auto lock settings page. [CHAR LIMIT=NONE] -->

View File

@@ -192,7 +192,8 @@ public class UseOneLockControllerSwitch extends AbstractPreferenceController
return;
}
new AlertDialog.Builder(mContext)
.setMessage(R.string.private_space_new_lock_title)
.setTitle(R.string.private_space_new_lock_title)
.setMessage(R.string.private_space_new_lock_message)
.setPositiveButton(
R.string.private_space_set_lock_label,
(dialog, which) -> {