Searched refs:oldShortcut (Results 1 – 1 of 1) sorted by relevance
231 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrUpdateDynamicShortcut() local235 if (oldShortcut == null) { in addOrUpdateDynamicShortcut()240 oldShortcut.ensureUpdatableWith(newShortcut); in addOrUpdateDynamicShortcut()242 wasPinned = oldShortcut.isPinned(); in addOrUpdateDynamicShortcut()347 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); in deleteOrDisableWithId() local349 if (oldShortcut == null || !oldShortcut.isEnabled()) { in deleteOrDisableWithId()353 ensureNotImmutable(oldShortcut); in deleteOrDisableWithId()355 if (oldShortcut.isPinned()) { in deleteOrDisableWithId()357 oldShortcut.setRank(0); in deleteOrDisableWithId()358 oldShortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_MANIFEST); in deleteOrDisableWithId()[all …]