Merge "Persist the updated item to DB when a shortcut info is badged for the first time" into ub-launcher3-edmonton-polish

This commit is contained in:
TreeHugger Robot 2018-06-21 17:24:43 +00:00 committed by Android (Google) Code Review
commit 2de013874f
1 changed files with 1 additions and 0 deletions

View File

@ -640,6 +640,7 @@ public class LauncherModel extends BroadcastReceiver
@Override
public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) {
ShortcutInfo info = shortcutProvider.get();
getModelWriter().updateItemInDatabase(info);
ArrayList<ShortcutInfo> update = new ArrayList<>();
update.add(info);
bindUpdatedShortcuts(update, info.user);