Make the fragment title can’t searchable
we shouldn't take users so deep into the settings IA because it's easy to feel lost in settings after clicking on a result without additional context. Bug: 143055215 Test: robotest & manual Change-Id: I337cb5ead31e1e4e7bf9be78132e90630f83ee43
This commit is contained in:
@@ -53,7 +53,6 @@ public class PaymentSettingsTest {
|
||||
|
||||
static final String PAYMENT_KEY = "nfc_payment";
|
||||
static final String FOREGROUND_KEY = "nfc_foreground";
|
||||
static final String PAYMENT_SCREEN_KEY = "nfc_payment_settings_screen";
|
||||
|
||||
private Context mContext;
|
||||
|
||||
@@ -107,14 +106,14 @@ public class PaymentSettingsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getNonIndexabkeKey_guestUser_returnsFalse() {
|
||||
public void getNonIndexableKey_guestUser_returnsFalse() {
|
||||
when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)).thenReturn(true);
|
||||
when(mUserInfo.isGuest()).thenReturn(true);
|
||||
|
||||
final List<String> niks =
|
||||
PaymentSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(mContext);
|
||||
|
||||
assertThat(niks).containsAllOf(FOREGROUND_KEY, PAYMENT_KEY, PAYMENT_SCREEN_KEY);
|
||||
assertThat(niks).containsAllOf(FOREGROUND_KEY, PAYMENT_KEY);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user