change default screen when you drag an item onto it
Change-Id: Iecfcb04c8a2c7b7c67e4127cf9fd86c3853b0b21
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user