Fixing crash when dropping item in hotseat (issue 6246039)
Change-Id: I50ad5439127adbb29423116bf0471a970f62e1bf
This commit is contained in:
1 parent
4b57851287
commit
2acce88b5f
2 files changed
+14
-7
No files matched your search
@@ -3353,9 +3353,11 @@ public class Workspace extends SmoothPagedView
|
||||
for (int i = 0; i < count; i++) {
|
||||
View v = cl.getShortcutsAndWidgets().getChildAt(i);
|
||||
ItemInfo info = (ItemInfo) v.getTag();
|
||||
|
||||
LauncherModel.moveItemInDatabase(mLauncher, info, Favorites.CONTAINER_DESKTOP, screen,
|
||||
info.cellX, info.cellY);
|
||||
// Null check required as the AllApps button doesn't have an item info
|
||||
if (info != null) {
|
||||
LauncherModel.moveItemInDatabase(mLauncher, info, Favorites.CONTAINER_DESKTOP,
|
||||
screen, info.cellX, info.cellY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user