Use primary profile lock settings string in Safety Source, not work profile am: d4822fe6b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/16979281 Change-Id: I1a57ff9d5edbed4be2052ac69344b9132f157ba8
This commit is contained in:
@@ -57,7 +57,7 @@ public final class LockScreenSafetySource {
|
||||
screenLockPreferenceDetailsUtils);
|
||||
|
||||
final SafetySourceStatus status = new SafetySourceStatus.Builder(
|
||||
context.getString(R.string.unlock_set_unlock_launch_picker_title_profile),
|
||||
context.getString(R.string.unlock_set_unlock_launch_picker_title),
|
||||
screenLockPreferenceDetailsUtils.getSummary(UserHandle.myUserId()),
|
||||
screenLockPreferenceDetailsUtils.isLockPatternSecure()
|
||||
? SafetySourceStatus.STATUS_LEVEL_OK
|
||||
|
@@ -108,7 +108,7 @@ public class LockScreenSafetySourceTest {
|
||||
assertThat(safetySourceStatus.getTitle().toString())
|
||||
.isEqualTo(ResourcesUtils.getResourcesString(
|
||||
mApplicationContext,
|
||||
"unlock_set_unlock_launch_picker_title_profile"));
|
||||
"unlock_set_unlock_launch_picker_title"));
|
||||
assertThat(safetySourceStatus.getSummary().toString())
|
||||
.isEqualTo(SUMMARY);
|
||||
assertThat(safetySourceStatus.getPendingIntent().getIntent()).isNotNull();
|
||||
|
Reference in New Issue
Block a user