[a11y] Fix Talkback speak "Edit box, Nickname" for "Select photo" button.

In multi-user Profile info dialog, set labelFor will set the editbox
which serves as the label of the iconview represented by this info for
accessibility purposes.
But since both of views have different purposes, we should not set label
for icon.

Bug: 141455211
Test: manual
Change-Id: I6c7087fc7d2bcc75c388992c1a2b8ecc010cc279
This commit is contained in:
Edgar Wang
2020-05-27 13:21:29 +08:00
parent 1e0789355e
commit 24ac9876d1

View File

@@ -42,7 +42,6 @@
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textAlignment="viewStart"
android:labelFor="@id/user_photo"
android:inputType="text|textCapWords"
android:selectAllOnFocus="true"
android:hint="@string/user_nickname"