Fix for regression which made issue 14491953 occur more easily
Change-Id: I27711aad8aae2824a54a043f686918d342ffc5bb
(cherry picked from commit 327acfea13)
This commit is contained in:
@@ -2890,6 +2890,8 @@ public class Launcher extends Activity
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2911,7 +2913,6 @@ public class Launcher extends Activity
|
||||
// User long pressed on empty space
|
||||
mWorkspace.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS,
|
||||
HapticFeedbackConstants.FLAG_IGNORE_VIEW_SETTING);
|
||||
// Disabling reordering until we sort out some issues.
|
||||
if (mWorkspace.isInOverviewMode()) {
|
||||
mWorkspace.startReordering(v);
|
||||
} else {
|
||||
|
||||
@@ -2482,7 +2482,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
public boolean startReordering(View v) {
|
||||
int dragViewIndex = indexOfChild(v);
|
||||
|
||||
if (mTouchState != TOUCH_STATE_REST) return false;
|
||||
if (mTouchState != TOUCH_STATE_REST || dragViewIndex == -1) return false;
|
||||
|
||||
mTempVisiblePagesRange[0] = 0;
|
||||
mTempVisiblePagesRange[1] = getPageCount() - 1;
|
||||
|
||||
Reference in New Issue
Block a user