Fixing issue where we were not removing items from LauncherModel and only the add-queue. (Bug 7078244)
Change-Id: I5660b447521646f820fb2497f327e965d99ac207
This commit is contained in:
1 parent
5a0f45fe27
commit
8a4351063f
2 files changed
+28
No files matched your search
@@ -2167,6 +2167,24 @@ public class LauncherModel extends BroadcastReceiver {
|
||||
return info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the set of workspace ShortcutInfos with the specified intent.
|
||||
*/
|
||||
static ArrayList<ItemInfo> getWorkspaceShortcutItemInfosWithIntent(Intent intent) {
|
||||
ArrayList<ItemInfo> items = new ArrayList<ItemInfo>();
|
||||
synchronized (sBgLock) {
|
||||
for (ItemInfo info : sBgWorkspaceItems) {
|
||||
if (info instanceof ShortcutInfo) {
|
||||
ShortcutInfo shortcut = (ShortcutInfo) info;
|
||||
if (shortcut.intent.toUri(0).equals(intent.toUri(0))) {
|
||||
items.add(shortcut);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make an ShortcutInfo object for a shortcut that isn't an application.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user