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

Commit 3b4e29e6 authored by Manish Singh's avatar Manish Singh Committed by Android (Google) Code Review
Browse files

Merge "Return my user id" into main

parents 706902fb 20b7cdcd
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -16,18 +16,14 @@

package com.android.settings.applications.credentials;

import android.os.UserHandle;
import android.os.UserManager;

import com.android.settings.Utils;
import com.android.settings.dashboard.profileselector.ProfileSelectFragment.ProfileType;

public class DefaultCombinedPickerPrivate extends DefaultCombinedPicker {
    private static final String TAG = "DefaultCombinedPickerPrivate";

    @Override
    protected int getUser() {
        UserManager userManager = getContext().getSystemService(UserManager.class);
        return Utils.getCurrentUserIdOfType(userManager, ProfileType.PRIVATE);
        return UserHandle.myUserId();
    }

    /** Returns whether the user is handled by this fragment. */