RESTRICT AUTOMERGE Fix certain Accessibility Settings subpages use wrong resources am: 3fba0ee402
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21422270 Change-Id: I291a61602816049647592c17588771ece1cfcc42 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -92,7 +92,7 @@ public class AccessibilityButtonPreviewPreferenceControllerTest {
|
||||
|
||||
final Drawable smallFloatingMenuWithTenOpacityDrawable =
|
||||
AccessibilityLayerDrawable.createLayerDrawable(mContext,
|
||||
R.drawable.accessibility_button_preview_small_floating_menu, 10);
|
||||
R.drawable.a11y_button_preview_small_floating_menu, 10);
|
||||
assertThat(
|
||||
mController.mIllustrationPreference.getImageDrawable().getConstantState())
|
||||
.isEqualTo(smallFloatingMenuWithTenOpacityDrawable.getConstantState());
|
||||
|
@@ -43,20 +43,20 @@ public class AccessibilityDialogUtilsTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateSoftwareShortcutInDialog_correctDialogType_success() {
|
||||
public void updateShortcutInDialog_correctDialogType_success() {
|
||||
final AlertDialog dialog = AccessibilityDialogUtils.showEditShortcutDialog(
|
||||
mContext, AccessibilityDialogUtils.DialogType.EDIT_SHORTCUT_GENERIC, "Title",
|
||||
null);
|
||||
|
||||
assertThat(
|
||||
AccessibilityDialogUtils.updateSoftwareShortcutInDialog(mContext, dialog)).isTrue();
|
||||
AccessibilityDialogUtils.updateShortcutInDialog(mContext, dialog)).isTrue();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateSoftwareShortcutInDialog_useNotSupportedDialog_fail() {
|
||||
public void updateShortcutInDialog_useNotSupportedDialog_fail() {
|
||||
final AlertDialog dialog = new AlertDialog.Builder(mContext).setTitle("Title").show();
|
||||
|
||||
assertThat(AccessibilityDialogUtils.updateSoftwareShortcutInDialog(mContext,
|
||||
assertThat(AccessibilityDialogUtils.updateShortcutInDialog(mContext,
|
||||
dialog)).isFalse();
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,7 @@ public class AccessibilityLayerDrawableTest {
|
||||
@Test
|
||||
public void createLayerDrawable_configCorrect() {
|
||||
final Drawable expected1stDrawable = mContext.getDrawable(
|
||||
R.drawable.accessibility_button_preview_base);
|
||||
R.drawable.a11y_button_preview_base);
|
||||
final Drawable expected2ndDrawable = mContext.getDrawable(TEST_RES_ID);
|
||||
|
||||
final AccessibilityLayerDrawable actualDrawable =
|
||||
|
Reference in New Issue
Block a user