Fixing a couple bugs, allapps clicks and weird crash

-> issue 5021897 (when this was fixed, exposed more bugginess that is now fixed)
-> issue 5038392

Change-Id: I49a4e9fca154f75ea22ad2c462641747536102ce
This commit is contained in:
Adam Cohen
2011-07-20 15:45:11 -07:00
parent d8ff0e68e8
commit fc53cd22c9
10 changed files with 45 additions and 78 deletions
@@ -350,6 +350,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
public void onClick(View v) {
// When we have exited all apps or are in transition, disregard clicks
if (!mLauncher.isAllAppsCustomizeOpen() ||
mLauncher.getWorkspace().isSwitchingState()) return;
if (v instanceof PagedViewIcon) {
// Animate some feedback to the click
final ApplicationInfo appInfo = (ApplicationInfo) v.getTag();
@@ -459,11 +463,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
/*
* DragSource implementation
*/
@Override
public void onDragViewVisible() {}
@Override
public void onDropCompleted(View target, DragObject d, boolean success) {
endDragging(target, success);