Adding Nfc Tag App Preference setting to special_access settings
In the settings app, allow users to change the preference of the Nfc Tag apps. Bug: 244272155 Test: make RunSettingsRoboTests ROBOTEST_FILTER=NfcTagAppsPreferenceControllerTest Change-Id: I28903fae8935613a0e8618da21ca44e98b8801d5
This commit is contained in:
@@ -38,6 +38,7 @@ public class ShadowNfcAdapter extends org.robolectric.shadows.ShadowNfcAdapter {
|
||||
private boolean mIsNfcEnabled = false;
|
||||
private int mState = NfcAdapter.STATE_ON;
|
||||
private boolean mIsSecureNfcSupported = false;
|
||||
private boolean mIsTagIntentAppPreferenceSupported = false;
|
||||
|
||||
@Implementation
|
||||
protected void enableReaderMode(Activity activity, NfcAdapter.ReaderCallback callback,
|
||||
@@ -97,4 +98,13 @@ public class ShadowNfcAdapter extends org.robolectric.shadows.ShadowNfcAdapter {
|
||||
public static void reset() {
|
||||
sReaderModeEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
public void setTagIntentAppPreferenceSupported(boolean supported) {
|
||||
mIsTagIntentAppPreferenceSupported = supported;
|
||||
}
|
||||
|
||||
@Implementation
|
||||
protected boolean isTagIntentAppPreferenceSupported() {
|
||||
return mIsTagIntentAppPreferenceSupported;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user