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

Commit f1d992e5 authored by Jack Yu's avatar Jack Yu Committed by Alexander Grund
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 58f1954d
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
@@ -104,7 +104,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
    }

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