Fixing crash due to checking hotseat items for collisions incorrectly.
Change-Id: I6ad2a3bd46b975959077683331a4ff7b946cc488
This commit is contained in:
1 parent
34a3340cfb
commit
ce376639c8
1 file changed
+5
-3
@@ -3495,9 +3495,11 @@ public class Launcher extends Activity
|
||||
/*
|
||||
* TODO: FIX collision case
|
||||
*/
|
||||
CellLayout cl = mWorkspace.getScreenWithId(item.screenId);
|
||||
if (cl != null && cl.isOccupied(item.cellX, item.cellY)) {
|
||||
throw new RuntimeException("OCCUPIED");
|
||||
if (item.container == LauncherSettings.Favorites.CONTAINER_DESKTOP) {
|
||||
CellLayout cl = mWorkspace.getScreenWithId(item.screenId);
|
||||
if (cl != null && cl.isOccupied(item.cellX, item.cellY)) {
|
||||
throw new RuntimeException("OCCUPIED");
|
||||
}
|
||||
}
|
||||
|
||||
workspace.addInScreenFromBind(shortcut, item.container, item.screenId, item.cellX,
|
||||
|
||||
Reference in new issue
Block a user