Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e4d1c48 authored by Anton Potapov's avatar Anton Potapov Committed by Android (Google) Code Review
Browse files

Merge "Changing the a11y order for ringer buttons" into main

parents 2cdded15 4774eae1
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@
                    android:layout_width="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_height="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_gravity="center"
                    android:tint="?android:attr/textColorPrimary"
                    android:src="@drawable/ic_volume_ringer_vibrate" />
                    android:src="@drawable/ic_volume_ringer_vibrate"
                    android:tint="?android:attr/textColorPrimary" />

            </FrameLayout>

@@ -76,6 +76,7 @@
                android:id="@+id/volume_drawer_mute"
                android:layout_width="@dimen/volume_ringer_drawer_item_size"
                android:layout_height="@dimen/volume_ringer_drawer_item_size"
                android:accessibilityTraversalAfter="@id/volume_drawer_vibrate"
                android:contentDescription="@string/volume_ringer_hint_mute"
                android:gravity="center">

@@ -84,8 +85,8 @@
                    android:layout_width="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_height="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_gravity="center"
                    android:tint="?android:attr/textColorPrimary"
                    android:src="@drawable/ic_speaker_mute" />
                    android:src="@drawable/ic_speaker_mute"
                    android:tint="?android:attr/textColorPrimary" />

            </FrameLayout>

@@ -93,6 +94,7 @@
                android:id="@+id/volume_drawer_normal"
                android:layout_width="@dimen/volume_ringer_drawer_item_size"
                android:layout_height="@dimen/volume_ringer_drawer_item_size"
                android:accessibilityTraversalAfter="@id/volume_drawer_mute"
                android:contentDescription="@string/volume_ringer_hint_unmute"
                android:gravity="center">

@@ -101,8 +103,8 @@
                    android:layout_width="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_height="@dimen/volume_ringer_drawer_icon_size"
                    android:layout_gravity="center"
                    android:tint="?android:attr/textColorPrimary"
                    android:src="@drawable/ic_speaker_on" />
                    android:src="@drawable/ic_speaker_on"
                    android:tint="?android:attr/textColorPrimary" />

            </FrameLayout>

+7 −4
Original line number Diff line number Diff line
@@ -1129,7 +1129,9 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
        }

        updateSelectedRingerContainerDescription(true);

        mSelectedRingerContainer.setImportantForAccessibility(
                View.IMPORTANT_FOR_ACCESSIBILITY_NO);
        mSelectedRingerContainer.clearFocus();
        mIsRingerDrawerOpen = true;
    }

@@ -1175,7 +1177,8 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
                .start();

        updateSelectedRingerContainerDescription(false);

        mSelectedRingerContainer.setImportantForAccessibility(
                View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
        mIsRingerDrawerOpen = false;
    }