Adding quiet mode support for shortcuts
> LauncherApps returns empty list when the user is locked. Not relying on LauncherApps in this case > When the user is locked, removing all dynamic shortcuts > Loading shortcuts from DB when the user is locked > Verifying the shortcuts again when the user is available Bug: 30411561 Change-Id: Ib6eb372c5b009cadb86a8f6e781f3f3cbf787ceb
This commit is contained in:
@@ -98,7 +98,7 @@ public class DeepShortcutManager {
|
||||
public void unpinShortcut(final ShortcutKey key) {
|
||||
if (Utilities.isNycMR1OrAbove()) {
|
||||
String packageName = key.componentName.getPackageName();
|
||||
String id = key.id;
|
||||
String id = key.getId();
|
||||
UserHandleCompat user = key.user;
|
||||
List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user));
|
||||
pinnedIds.remove(id);
|
||||
@@ -120,7 +120,7 @@ public class DeepShortcutManager {
|
||||
public void pinShortcut(final ShortcutKey key) {
|
||||
if (Utilities.isNycMR1OrAbove()) {
|
||||
String packageName = key.componentName.getPackageName();
|
||||
String id = key.id;
|
||||
String id = key.getId();
|
||||
UserHandleCompat user = key.user;
|
||||
List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user));
|
||||
pinnedIds.add(id);
|
||||
|
||||
Reference in New Issue
Block a user