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

Commit edbb4977 authored by Jack Yu's avatar Jack Yu Committed by Android Build Coastguard Worker
Browse files

Only primary user is allowed to control secure nfc

Bug: 238298970
Test: manual
Merged-In: I945490ef1e62af479a732c9a260ed94bdd8bc313
Change-Id: I945490ef1e62af479a732c9a260ed94bdd8bc313
(cherry picked from commit 0e57ff90)
Merged-In: I945490ef1e62af479a732c9a260ed94bdd8bc313
parent 4053fe7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public class SecureNfcEnabler extends BaseNfcEnabler {
    }

    private boolean isToggleable() {
        if (mUserManager.isGuestUser()) {
        if (!mUserManager.isPrimaryUser()) {
            return false;
        }
        return true;
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
    }

    private boolean isToggleable() {
        if (mUserManager.isGuestUser()) {
        if (!mUserManager.isPrimaryUser()) {
            return false;
        }
        return true;