Only primary user is allowed to control secure nfc

Bug: 238298970
Test: manual
Change-Id: I945490ef1e62af479a732c9a260ed94bdd8bc313
This commit is contained in:
Jack Yu
2022-07-28 19:42:27 +08:00
parent aef0cde406
commit f8b664e31f
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ public class SecureNfcEnabler extends BaseNfcEnabler {
}
private boolean isToggleable() {
if (mUserManager.isGuestUser()) {
if (!mUserManager.isPrimaryUser()) {
return false;
}
return true;

View File

@@ -109,7 +109,7 @@ public class SecureNfcPreferenceController extends TogglePreferenceController
}
private boolean isToggleable() {
if (mUserManager.isGuestUser()) {
if (!mUserManager.isPrimaryUser()) {
return false;
}
return true;