TalkBack: Clarify volume panel slice action label
Change the generic "double-tap to activate" into "double-tap to enter settings". Bug: b/285516489 Test: atest PanelSlicesAdapterTest Change-Id: I1bba0d625c93db90f347b756f5a20a7ac7e64d56
This commit is contained in:
@@ -19,6 +19,7 @@ package com.android.settings.panel;
|
||||
import static com.android.settings.panel.PanelContent.VIEW_TYPE_SLIDER;
|
||||
import static com.android.settings.panel.PanelSlicesAdapter.MAX_NUM_OF_SLICES;
|
||||
import static com.android.settings.slices.CustomSliceRegistry.MEDIA_OUTPUT_INDICATOR_SLICE_URI;
|
||||
import static com.android.settings.slices.CustomSliceRegistry.VOLUME_NOTIFICATION_URI;
|
||||
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
@@ -139,6 +140,19 @@ public class PanelSlicesAdapterTest {
|
||||
assertThat(viewHolder.mSliceSliderLayout).isNull();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onCreateViewHolder_viewTypeSlider_verifyActionLabelSet() {
|
||||
addTestLiveData(VOLUME_NOTIFICATION_URI);
|
||||
|
||||
final PanelSlicesAdapter adapter =
|
||||
new PanelSlicesAdapter(mPanelFragment, mData, 0);
|
||||
final ViewGroup view = new FrameLayout(mContext);
|
||||
SliceRowViewHolder viewHolder = spy(adapter.onCreateViewHolder(view, 0 /* view type*/));
|
||||
adapter.onBindViewHolder(viewHolder, 0);
|
||||
|
||||
verify(viewHolder).updateActionLabel();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onCreateViewHolder_viewTypeSlider_verifyLayout() {
|
||||
final PanelSlicesAdapter adapter =
|
||||
|
Reference in New Issue
Block a user