Exemplo n.º 1
0
 /** Removes some apps from the list. */
 public void removeApps(List<AppInfo> apps) {
   for (AppInfo app : apps) {
     mComponentToAppMap.remove(app.toComponentKey());
   }
   onAppsUpdated();
 }
Exemplo n.º 2
0
 /** Updates existing apps in the list */
 public void updateApps(List<AppInfo> apps) {
   for (AppInfo app : apps) {
     mComponentToAppMap.put(app.toComponentKey(), app);
   }
   onAppsUpdated();
 }