Accessibility shortcut secondary action - Settings view status link with checkbox

Lets settings view auto enabled by checkbox click status.

Bug: 142530063
Test: make -j52 RunSettingsRoboTests ROBOTEST_FILTER=ShortcutPreferenceTest
Change-Id: I588d2ada85ae1169f439db9c6ce254c20119b2e5
This commit is contained in:
jasonwshsu
2020-01-09 20:21:11 +08:00
parent 5d1bcb0408
commit 5fd157b404
2 changed files with 46 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ public class ShortcutPreferenceTest {
}
@Test
public void testClickLinearLayout_checkboxClicked() {
public void clickLinearLayout_checkboxClicked() {
mShortcutPreference.onBindViewHolder(mPreferenceViewHolder);
mShortcutPreference.setOnClickListener(mListener);
@@ -81,7 +81,7 @@ public class ShortcutPreferenceTest {
}
@Test
public void testClickSettings_settingsClicked() {
public void clickSettings_settingsClicked() {
mShortcutPreference.onBindViewHolder(mPreferenceViewHolder);
mShortcutPreference.setOnClickListener(mListener);
@@ -92,7 +92,7 @@ public class ShortcutPreferenceTest {
}
@Test
public void testSetCheckedTrue_getCheckedIsTrue() {
public void setCheckedTrue_getCheckedIsTrue() {
mShortcutPreference.setChecked(true);
assertThat(mShortcutPreference.getChecked()).isEqualTo(true);