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

Commit ecf90eb7 authored by Eric Biggers's avatar Eric Biggers Committed by Gerrit Code Review
Browse files

Merge "Use isCeStorageUnlocked() in window manager" into main

parents e9c999d7 988df700
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1637,8 +1637,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
            return false;
        }

        if (!StorageManager.isUserKeyUnlocked(mCurrentUser)) {
            // Can't launch home on secondary display areas if device is still locked.
        if (!StorageManager.isCeStorageUnlocked(mCurrentUser)) {
            // Can't launch home on secondary display areas if CE storage is still locked.
            return false;
        }

+1 −1
Original line number Diff line number Diff line
@@ -870,7 +870,7 @@ public class RootWindowContainerTests extends WindowTestsBase {
                new TestDisplayContent.Builder(mAtm, 1000, 1500)
                        .setSystemDecorations(true).build();

        // Use invalid user id to let StorageManager.isUserKeyUnlocked() return false.
        // Use invalid user id to let StorageManager.isCeStorageUnlocked() return false.
        final int currentUser = mRootWindowContainer.mCurrentUser;
        mRootWindowContainer.mCurrentUser = -1;