Dockbar长按后执行的方法

点击或者长按+号图标:showEditDockShortcutDialog -> (1)showDialog(DIALOG_SELECT_SHORTAPP) (2)showDialog(DIALOG_SELECT_SHORTCUT_NO_ICON)

(1) -> EditDockShortcut -> (2)showPickIconDialog (3)pickShortcut -> processShortcut

(2) -> default icon: restoreToDefaultIcon

system icon: completeAddSystemIcon (3) -> completeAddSystemIcon(2)

custom icon: completeAddCustomIcon

(3) -> application: completeAddDockApplication ->completeAddDockItem

blank: restoreToBlank

shortcut: completeAddDockShortcut -> completeAddDockItem

在空白出长按:

showAddDialog -> showDialog -> onPrepareDialog -> onCreateDialog -> CreateShortcut.createDialog

onClick: ITEM_SHORTCUT:->pickShortcut(REQUEST_PICK_SHORTCUT) -> startActivityForResult(REQUEST_PCIK_SHORTCUT)

(1) -> processShortcut(REQUEST_PICK_APPLICATION) ->startActivityForResult(REQUEST_PICK_APPLICATION) -> completeAddApplication

(2) -> processShortcut(REQUEST_CREATE_SHORTCUT) -> completeAddShortcut

ITEM_APPWIDGET: -> startActivityForResult(REQUEST_PICK_APPWIDGET) -> addAppWidget -> startActivityForResult(REQUEST_CREATE_APPWIDGET)

->onActivityResult(REQUEST_CREATE_WIDGET) -> completeAddAppWidget

ITEM_LIVE_FOLDER:startActivityForResult(REQUEST_PICK_LIVE_FOLDER) -> addLiveFolder

(1) -> addFolder

(2) -> startActivityForResult(REQUEST_CREATE_LIVE_FOLDER) -> completeAddLiveFolder

ITEM_WALLPAPER: startWallpaper

ITEM_ANYCUT: -> startActivityForResult(REQUEST_PICK_ANYCUT) -> completeAddShortcut

你可能感兴趣的:(方法)