Separating methods for updating the model to a sepatate class.

Removing static access to model update methods, to allow for better
access control and testing

Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704
This commit is contained in:
Sunny Goyal
2017-02-02 13:52:53 -08:00
parent 5a2edd65f2
commit 43bf11d9c9
17 changed files with 450 additions and 372 deletions

View File

@@ -95,7 +95,7 @@ public class UserLockStateChangedTask extends ExtendedModelTask {
}
bindUpdatedShortcuts(updatedShortcutInfos, deletedShortcutInfos, mUser);
if (!deletedShortcutInfos.isEmpty()) {
LauncherModel.deleteItemsFromDatabase(context, deletedShortcutInfos);
getModelWriter().deleteItemsFromDatabase(deletedShortcutInfos);
}
// Remove shortcut id map for that user