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

Commit af7b4a43 authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

Lockscreen Targets : Make multi-user compatible

Use getStringForUser instead of getString since the framework always run as root user (0)

Change-Id: Ibe8b69cf4c4ad123ca8e68cd8fadcb7eb467b5be
parent 1bd6ff61
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -274,8 +274,8 @@ public class KeyguardSelectorView extends LinearLayout implements KeyguardSecuri
    }

    public void updateResources() {
        String storedVal = Settings.System.getString(mContext.getContentResolver(),
                Settings.System.LOCKSCREEN_TARGETS);
        String storedVal = Settings.System.getStringForUser(mContext.getContentResolver(),
                Settings.System.LOCKSCREEN_TARGETS, UserHandle.USER_CURRENT);
        if (storedVal == null) {
            // Update the search icon with drawable from the search .apk
            if (!mSearchDisabled) {