Do not generate copyable slices for Settings Search
Copyable slices is to provide user a quickly sub-text copying way on Settings Search. Since we plan to remove all sub-text from Settings Search, the copying feature is no longer available. Therefore, we don't need to generate copyable slices in Settings anymore. Impact search result: Build number, Phone number, Hardware version, Serial number and IMEI Bug: 143118037 Test: visual and robotests Change-Id: I81474aed994678c42d73cc59e169573880de1378
This commit is contained in:
@@ -158,11 +158,6 @@ public class PhoneNumberPreferenceControllerTest {
|
||||
assertThat(primaryNumber).isEqualTo(mContext.getString(R.string.device_info_default));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isSliceable_shouldBeTrue() {
|
||||
assertThat(mController.isSliceable()).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void copy_shouldCopyPhoneNumberToClipboard() {
|
||||
final List<SubscriptionInfo> list = new ArrayList<>();
|
||||
@@ -178,9 +173,4 @@ public class PhoneNumberPreferenceControllerTest {
|
||||
final CharSequence data = clipboard.getPrimaryClip().getItemAt(0).getText();
|
||||
assertThat(phoneNumber.contentEquals(data)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isPublicSlice_returnTrue() {
|
||||
assertThat(mController.isPublicSlice()).isTrue();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user