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

Commit 5c399c60 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Lock more of the things

Specifically, access to PackagePreferences

Test: atest
Bug: 129444912
Change-Id: Ia2ff46fff433333c76f0898a68b9230dcfb253ee
parent 168f7e48
Loading
Loading
Loading
Loading
+450 −376

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -940,12 +940,12 @@ public class PreferencesHelperTest extends UiServiceTestCase {
    @Test
    public void testClearLockedFields() {
        final NotificationChannel channel = getChannel();
        mHelper.clearLockedFields(channel);
        mHelper.clearLockedFieldsLocked(channel);
        assertEquals(0, channel.getUserLockedFields());

        channel.lockFields(NotificationChannel.USER_LOCKED_PRIORITY
                | NotificationChannel.USER_LOCKED_IMPORTANCE);
        mHelper.clearLockedFields(channel);
        mHelper.clearLockedFieldsLocked(channel);
        assertEquals(0, channel.getUserLockedFields());
    }