Initial spring loaded workspace.

It is a bit clunky and doesn't have the App Info drag bar at the
bottom yet, but it is a start.

Also removed page hints because they are no longer used.

Change-Id: I1f8f82d33e6694cab1f1c762e78852ac0d40ab33
This commit is contained in:
Tony Wickham
2015-09-11 12:17:48 -07:00
parent d7dfd26f29
commit 94e0d37f53
21 changed files with 27 additions and 156 deletions
+7 -6
View File
@@ -2356,6 +2356,8 @@ public class Workspace extends PagedView
dv.setIntrinsicIconScaleFactor(source.getIntrinsicIconScaleFactor());
b.recycle();
mLauncher.enterSpringLoadedDragMode();
}
public void beginExternalDragShared(View child, DragSource source) {
@@ -2404,6 +2406,8 @@ public class Workspace extends PagedView
// Recycle temporary bitmaps
tmpB.recycle();
mLauncher.enterSpringLoadedDragMode();
}
public boolean transitionStateShouldAllowDrop() {
@@ -2861,10 +2865,6 @@ public class Workspace extends PagedView
CellLayout layout = getCurrentDropLayout();
setCurrentDropLayout(layout);
setCurrentDragOverlappingLayout(layout);
if (!workspaceInModalState()) {
mLauncher.getDragLayer().showPageHints();
}
}
@Override
@@ -2899,8 +2899,6 @@ public class Workspace extends PagedView
setCurrentDragOverlappingLayout(null);
mSpringLoadedDragController.cancel();
mLauncher.getDragLayer().hidePageHints();
}
private void enfoceDragParity(String event, int update, int expectedValue) {
@@ -3735,6 +3733,9 @@ public class Workspace extends PagedView
}
mDragOutline = null;
mDragInfo = null;
mLauncher.exitSpringLoadedDragModeDelayed(success,
Launcher.EXIT_SPRINGLOADED_MODE_SHORT_TIMEOUT, null);
}
/**