Support accessibility shorcut secondary action (3/n)
Combine the UI with both shortcut preference and edit dialog. This CL only contains UI and related connections. Related logic implementation will be added in next CL. Since the drawable resources are not ready, put the mock drawables as temporary. Once the drawbles are provided by UX, create a CL to replace the related resources. Bug: 142530063 Bug: 142531156 Test: Maunal Change-Id: I21e4c6e99c2d1731c15d7c9553594160b8809eb5
This commit is contained in:
@@ -170,7 +170,8 @@ public class AccessibilityEditDialogUtils {
|
||||
final String summary = context.getString(
|
||||
R.string.accessibility_shortcut_edit_dialog_summary_hardware);
|
||||
setupShortcutWidget(dialogView, title, summary,
|
||||
R.drawable.illustration_accessibility_button);
|
||||
R.drawable.accessibility_shortcut_type_hardware);
|
||||
// TODO(b/142531156): Use vector drawable instead of temporal png file to avoid distorted.
|
||||
}
|
||||
|
||||
private static void initMagnifyShortcut(Context context, View view) {
|
||||
@@ -180,7 +181,8 @@ public class AccessibilityEditDialogUtils {
|
||||
final String summary = context.getString(
|
||||
R.string.accessibility_shortcut_edit_dialog_summary_triple_tap);
|
||||
setupShortcutWidget(dialogView, title, summary,
|
||||
R.drawable.illustration_accessibility_button);
|
||||
R.drawable.accessibility_shortcut_type_triple_tap);
|
||||
// TODO(b/142531156): Use vector drawable instead of temporal png file to avoid distorted.
|
||||
}
|
||||
|
||||
private static void initAdvancedWidget(View view) {
|
||||
@@ -213,8 +215,9 @@ public class AccessibilityEditDialogUtils {
|
||||
|
||||
private static int retrieveImageResId(Context context) {
|
||||
return isGestureNavigateEnabled(context)
|
||||
? R.drawable.illustration_accessibility_button
|
||||
: R.drawable.illustration_accessibility_button;
|
||||
? R.drawable.accessibility_shortcut_type_software_gesture
|
||||
: R.drawable.accessibility_shortcut_type_software;
|
||||
// TODO(b/142531156): Use vector drawable instead of temporal png file to avoid distorted.
|
||||
}
|
||||
|
||||
private static SpannableString getSummaryStringWithIcon(Context context, int lineHeight) {
|
||||
|
Reference in New Issue
Block a user