Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4822fe6 authored by Marie Matheson's avatar Marie Matheson
Browse files

Use primary profile lock settings string in Safety Source, not work profile

Test: atest CtsSafetyCenterTestCases
Bug: 215518847
Change-Id: I1c7ddbeb05be81fa902fcb4e42868ddd770d2dc0
parent 67c0b83f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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();