import android.util.AttributeSet;
import android.util.Log;
import android.util.Pair;
+import android.view.Display;
import android.view.DragEvent;
import android.view.MotionEvent;
import android.view.View;
onDropExternal(x, y, dragInfo, cellLayout, false);
}
+ @Override
+ public void getHitRect(Rect outRect) {
+ // We want the workspace to have the whole area of the display (it will find the correct
+ // cell layout to drop to in the existing drag/drop logic.
+ final Display d = mLauncher.getWindowManager().getDefaultDisplay();
+ outRect.set(0, 0, d.getWidth(), d.getHeight());
+ }
+
/**
* Add the item specified by dragInfo to the given layout.
* This is basically the equivalent of onDropExternal, except it's not initiated