Support multi-users for NFC payments

Configure nfc payment settings based on different users.

Bug: 191851086
Bug: 191845397
Bug: 192994529
Test: nfc payment with 2nd user
      make RunSettingsRoboTests
      ROBOTEST_FILTER=DefaultPaymentSettingsPreferenceControllerTest
Change-Id: I52440e77b6b5837b978b381e1c1694d2b29f048e
This commit is contained in:
Jack Yu
2021-07-26 22:13:50 +08:00
parent f36c2bc0a4
commit d2ca4038ce
2 changed files with 10 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ public class DefaultPaymentSettingsPreferenceController extends BasePreferenceCo
PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
return UNSUPPORTED_ON_DEVICE;
}
if (!mUserManager.isAdminUser()) {
if (mUserManager.isGuestUser()) {
return DISABLED_FOR_USER;
}
if (mNfcAdapter == null) {