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

Commit 34331b7c authored by Doris Ling's avatar Doris Ling
Browse files

Fix fingerprint swipe gesture settings for secondary users.

Change to use getIntForUser() when reading the secure settings value for
fingerprint swipe, as PhoneWindowManager always read as user 0 by
default.

Change-Id: I1d08a970b031f7bce4864c982e791678e1ef221b
Fixes: 30709756
parent c1aac02a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -7316,8 +7316,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }
    }


    private boolean areSystemNavigationKeysEnabled() {
    private boolean areSystemNavigationKeysEnabled() {
        return Settings.Secure.getInt(mContext.getContentResolver(),
        return Settings.Secure.getIntForUser(mContext.getContentResolver(),
                Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED, 0) == 1;
                Settings.Secure.SYSTEM_NAVIGATION_KEYS_ENABLED, 0, UserHandle.USER_CURRENT) == 1;
    }
    }


    @Override
    @Override