OSDN Git Service

Add a settings icon to restricted profile config header
authorAmith Yamasani <yamasani@google.com>
Mon, 13 May 2013 21:54:48 +0000 (14:54 -0700)
committerAmith Yamasani <yamasani@google.com>
Mon, 13 May 2013 21:58:56 +0000 (14:58 -0700)
This is to make it obvious that the header invokes user info settings.

Bug: 8888002

Also fix a minor copy/paste error in contentDesription attribute.

Change-Id: I3a90b0d691df8302fee696d82c5819f43109ae8e

res/layout/preference_user_delete_widget.xml
res/layout/user_info_header.xml

index 6ee6faa..7d563f8 100644 (file)
@@ -34,7 +34,7 @@
         android:paddingStart="16dip"
         android:paddingEnd="16dip"
         android:src="@drawable/ic_sysbar_quicksettings"
-        android:contentDescription="@string/user_delete_user_description"
+        android:contentDescription="@string/settings_label"
         android:layout_gravity="center"
         android:background="?android:attr/selectableItemBackground" />
     <View
index 506dd2e..c698eaf 100644 (file)
                 android:text="@string/user_summary_restricted_profile"
                 android:maxLines="4" />
         </RelativeLayout>
+        <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="fill_parent"
+                android:paddingStart="16dip"
+                android:paddingEnd="16dip"
+                android:src="@drawable/ic_sysbar_quicksettings"
+                android:contentDescription="@string/settings_label"
+                android:layout_gravity="center"/>
     </LinearLayout>
     <View android:layout_width="match_parent"
           android:layout_height="2dp"