summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/DragController.java
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2012-12-04 14:38:20 -0800
committerGerrit Code Review <gerrit@review.cyanogenmod.com>2012-12-04 14:38:34 -0800
commitd2f8f8f41f5d625e4db3503d1fb042b615939278 (patch)
tree9d2b1bf8e31719e714ed971573ca635d0d96d9cb /src/com/cyanogenmod/trebuchet/DragController.java
parent8fe64dd26876863f949e70d8057334d3c4c3cd68 (diff)
downloadandroid_packages_apps_Trebuchet-d2f8f8f41f5d625e4db3503d1fb042b615939278.tar.gz
android_packages_apps_Trebuchet-d2f8f8f41f5d625e4db3503d1fb042b615939278.tar.bz2
android_packages_apps_Trebuchet-d2f8f8f41f5d625e4db3503d1fb042b615939278.zip
This is causing a lot of weirdness on tablets' hotseats, + mild weirdness (such as roaming AllApps icon) on phones
Revert "Trebuchet : Add a pref to set hotseat icon's number" This reverts commit e74a54343ce7896b5005154e8bcbc7d5f06c7808
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/DragController.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/DragController.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/trebuchet/DragController.java b/src/com/cyanogenmod/trebuchet/DragController.java
index b7709373f..047c45548 100644
--- a/src/com/cyanogenmod/trebuchet/DragController.java
+++ b/src/com/cyanogenmod/trebuchet/DragController.java
@@ -34,7 +34,6 @@ import android.view.ViewConfiguration;
import android.view.inputmethod.InputMethodManager;
import com.cyanogenmod.trebuchet.R;
-import com.cyanogenmod.trebuchet.DropTarget.DragObject;
import java.util.ArrayList;
@@ -441,7 +440,7 @@ public class DragController {
case MotionEvent.ACTION_UP:
mLastTouchUpTime = System.currentTimeMillis();
if (mDragging) {
- PointF vec = isFlingingToDelete(mDragObject);
+ PointF vec = isFlingingToDelete(mDragObject.dragSource);
if (vec != null) {
dropOnFlingToDeleteTarget(dragLayerX, dragLayerY, vec);
} else {
@@ -583,7 +582,7 @@ public class DragController {
mHandler.removeCallbacks(mScrollRunnable);
if (mDragging) {
- PointF vec = isFlingingToDelete(mDragObject);
+ PointF vec = isFlingingToDelete(mDragObject.dragSource);
if (vec != null) {
dropOnFlingToDeleteTarget(dragLayerX, dragLayerY, vec);
} else {
@@ -606,10 +605,9 @@ public class DragController {
*
* @return the vector at which the item was flung, or null if no fling was detected.
*/
- private PointF isFlingingToDelete(DragObject object) {
+ private PointF isFlingingToDelete(DragSource source) {
if (mFlingToDeleteDropTarget == null) return null;
- if (!object.dragSource.supportsFlingToDelete()) return null;
- if (object.dragInfo instanceof AllAppsButtonInfo) return null;
+ if (!source.supportsFlingToDelete()) return null;
ViewConfiguration config = ViewConfiguration.get(mLauncher);
mVelocityTracker.computeCurrentVelocity(1000, config.getScaledMaximumFlingVelocity());