Fix NFC UI is not available when switching to 2nd user
Bug: 152581438 Test: (1) make -j42 RunSettingsRoboTests (2) check NFC UI and function work as 2nd user Change-Id: Ibf0346b992406c1d6329580083c1cd49180376cf
This commit is contained in:
@@ -85,16 +85,6 @@ public class NfcAndPaymentFragmentControllerTest {
|
||||
.isEqualTo(NfcAndPaymentFragmentController.UNSUPPORTED_ON_DEVICE);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getAvailabilityStatus_notAdminUser_shouldReturnDisabled() {
|
||||
when(mPackageManager.hasSystemFeature(anyString())).thenReturn(true);
|
||||
when(mUserManager.isAdminUser()).thenReturn(false);
|
||||
when(mNfcAdapter.isEnabled()).thenReturn(true);
|
||||
|
||||
assertThat(mController.getAvailabilityStatus())
|
||||
.isEqualTo(NfcAndPaymentFragmentController.DISABLED_FOR_USER);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getSummary_nfcOn_shouldProvideOnSummary() {
|
||||
when(mNfcAdapter.isEnabled()).thenReturn(true);
|
||||
|
Reference in New Issue
Block a user