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

Commit 072d0d84 authored by Adam Bookatz's avatar Adam Bookatz Committed by Android (Google) Code Review
Browse files

Merge "OnDeviceRecognition shows only profile group" into main

parents bedfb69f f5286606
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.UserInfo;
import android.os.UserHandle;
import android.os.UserManager;
import android.text.TextUtils;
@@ -80,10 +79,7 @@ public class OnDeviceRecognitionPreferenceController extends BasePreferenceContr
    }

    private void show(Preference preference) {
        final List<UserHandle> userHandles = new ArrayList<>();
        for (UserInfo userInfo : UserManager.get(mContext).getUsers()) {
            userHandles.add(userInfo.getUserHandle());
        }
        final List<UserHandle> userHandles = UserManager.get(mContext).getEnabledProfiles();

        // Only a single profile is installed. Proceed with its settings.
        if (userHandles.size() == 1) {