Make contentDescription to null for permission icon and device icon

Make contentDescription to null for permission icon and device icon
since these icons do not need the talkback and they are not
relevant to the items that's selected

Test: cts test
Bug: 243970767
Change-Id: Id60153e4022a4963a2660507e2d2316c9536a226
This commit is contained in:
Evan Chen
2022-09-02 00:21:48 +00:00
parent de2e7c4348
commit cea9bb9c5e
3 changed files with 6 additions and 3 deletions

View File

@@ -29,7 +29,9 @@
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="24dp"
android:tint="@android:color/system_accent1_600"/>
android:tint="@android:color/system_accent1_600"
android:importantForAccessibility="no"
android:contentDescription="@null"/>
<TextView
android:id="@android:id/text1"

View File

@@ -30,7 +30,8 @@
android:layout_height="24dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="12dp"
android:contentDescription="Permission Icon"/>
android:importantForAccessibility="no"
android:contentDescription="@null"/>
<LinearLayout
android:layout_width="match_parent"

View File

@@ -103,7 +103,7 @@ public class CompanionDeviceDiscoveryService extends Service {
private final Runnable mTimeoutRunnable = this::timeout;
private boolean mStopAfterFirstMatch;;
private boolean mStopAfterFirstMatch;
/**
* A state enum for devices' discovery.