diff options
| -rw-r--r-- | src/com/android/internal/utils/du/ActionHandler.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/android/internal/utils/du/ActionHandler.java b/src/com/android/internal/utils/du/ActionHandler.java index 69a4299..3238aa8 100644 --- a/src/com/android/internal/utils/du/ActionHandler.java +++ b/src/com/android/internal/utils/du/ActionHandler.java @@ -125,6 +125,7 @@ public class ActionHandler { public static final String SYSTEMUI_TASK_APP_PICKER = "task_app_picker"; public static final String SYSTEMUI_TASK_NOTIFICATION_CLEAR = "task_notification_clear"; public static final String SYSTEMUI_TASK_VOLUME_PANEL = "task_volume_panel"; + public static final String SYSTEMUI_TASK_EDITING_SMARTBAR = "task_editing_smartbar"; public static final String INTENT_SHOW_POWER_MENU = "action_handler_show_power_menu"; public static final String INTENT_TOGGLE_SCREENRECORD = "action_handler_toggle_screenrecord"; @@ -162,7 +163,8 @@ public class ActionHandler { ImeArrowUp(SYSTEMUI_TASK_IME_NAVIGATION_UP, SYSTEMUI, "label_action_ime_up", "ic_sysbar_ime_up"), AppPicker(SYSTEMUI_TASK_APP_PICKER, SYSTEMUI, "label_action_app_picker", "ic_sysbar_app_picker"), NotificationClear(SYSTEMUI_TASK_NOTIFICATION_CLEAR, SYSTEMUI, "label_action_notification_clear", "ic_qs_clear_notifications"), - VolumePanel(SYSTEMUI_TASK_VOLUME_PANEL, SYSTEMUI, "label_action_volume_panel", "ic_sysbar_volume_panel"); + VolumePanel(SYSTEMUI_TASK_VOLUME_PANEL, SYSTEMUI, "label_action_volume_panel", "ic_sysbar_volume_panel"), + EditingSmartbar(SYSTEMUI_TASK_EDITING_SMARTBAR, SYSTEMUI, "label_action_editing_smartbar", "ic_sysbar_editing_smartbar"); String mAction; String mResPackage; @@ -200,7 +202,7 @@ public class ActionHandler { SystemAction.ImeArrowLeft, SystemAction.ImeArrowRight, SystemAction.ImeArrowUp, SystemAction.InAppSearch, SystemAction.AppPicker, SystemAction.NotificationClear, - SystemAction.VolumePanel + SystemAction.VolumePanel, SystemAction.EditingSmartbar }; public static class ActionIconResources { @@ -592,6 +594,9 @@ public class ActionHandler { } else if (action.equals(SYSTEMUI_TASK_VOLUME_PANEL)) { volumePanel(context); return; + } else if (action.equals(SYSTEMUI_TASK_EDITING_SMARTBAR)) { + editingSmartbar(context); + return; } } @@ -963,4 +968,8 @@ public class ActionHandler { AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); am.adjustVolume(AudioManager.ADJUST_SAME, AudioManager.FLAG_SHOW_UI); } + public static void editingSmartbar(Context context) { + context.sendBroadcastAsUser(new Intent("intent_navbar_edit"), new UserHandle( + UserHandle.USER_ALL)); + } } |
