change default screen when you drag an item onto it

Change-Id: Iecfcb04c8a2c7b7c67e4127cf9fd86c3853b0b21
This commit is contained in:
Michael Jurka
2011-01-05 20:23:39 -08:00
parent 1605ec3329
commit b09cac5a73
+7
View File
@@ -1621,6 +1621,13 @@ public class Workspace extends SmoothPagedView
originY = (int)mTempOriginXY[1];
}
// When you drag to a particular screen, make that the new current/default screen, so any
// subsequent taps add items to that screen
int dragTargetIndex = indexOfChild(mDragTargetLayout);
if (mCurrentPage != dragTargetIndex && (mIsSmall || mIsInUnshrinkAnimation)) {
moveToNewPageWithoutMovingCellLayouts(dragTargetIndex);
}
if (source != this) {
if (!mIsSmall || mWasSpringLoadedOnDragExit) {
onDropExternal(originX, originY, dragInfo, mDragTargetLayout, false);