Increase the uninstall button touch target size
Increase the touch target size of uninstall button in the unused apps
page by adding a padding to the image view. The view now has a 48dp by
48dp size but the icon size remains the same.
Bug: 188826765
Test: Built and flashed to device. Verify through hsv the touch target
is 48dp x 48dp
Change-Id: I20195912bec5272d9141a49bd79689deb06fe398
diff --git a/PermissionController/res/xml/uninstall_button_preference_widget.xml b/PermissionController/res/xml/uninstall_button_preference_widget.xml
index 13c86f8..f4d0085 100644
--- a/PermissionController/res/xml/uninstall_button_preference_widget.xml
+++ b/PermissionController/res/xml/uninstall_button_preference_widget.xml
@@ -31,11 +31,11 @@
<ImageButton
android:id="@+id/uninstall_button"
style="@style/SettingsActionButton"
- android:layout_width="24dp"
- android:layout_height="24dp"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:padding="12dp"
android:layout_gravity="end|center_vertical"
android:contentDescription="@string/uninstall_or_disable"
- android:src="@drawable/ic_settings_delete"
- />
+ android:src="@drawable/ic_settings_delete"/>
</LinearLayout>
\ No newline at end of file