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

Commit b5b021cd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix comparison of UserHandle objects" into rvc-dev am: 6699c412 am:...

Merge "Fix comparison of UserHandle objects" into rvc-dev am: 6699c412 am: a440ea52 am: f1743279

Change-Id: If2f8479b51a4c839fc963e26515f6ccc0592939e
parents d69222db f1743279
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2611,11 +2611,12 @@ public class ChooserActivity extends ResolverActivity implements
     * does not match either the personal or work user handle.
     **/
    private int getProfileForUser(UserHandle currentUserHandle) {
        if (currentUserHandle == getPersonalProfileUserHandle()) {
        if (currentUserHandle.equals(getPersonalProfileUserHandle())) {
            return PROFILE_PERSONAL;
        } else if (currentUserHandle == getWorkProfileUserHandle()) {
        } else if (currentUserHandle.equals(getWorkProfileUserHandle())) {
            return PROFILE_WORK;
        }
        Log.e(TAG, "User " + currentUserHandle + " does not belong to a personal or work profile.");
        return -1;
    }