am 92478920: Fixing regression where you can\'t add shortcuts
* commit '9247892015dad231c5005aa021c3e3416265ed80': Fixing regression where you can't add shortcuts
This commit is contained in:
@@ -657,8 +657,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean beginDraggingWidget(View v) {
|
private boolean beginDraggingWidget(View v) {
|
||||||
Log.d(TAG, "begin dragging widget, view: " + v);
|
|
||||||
|
|
||||||
mDraggingWidget = true;
|
mDraggingWidget = true;
|
||||||
// Get the widget preview as the drag representation
|
// Get the widget preview as the drag representation
|
||||||
ImageView image = (ImageView) v.findViewById(R.id.widget_preview);
|
ImageView image = (ImageView) v.findViewById(R.id.widget_preview);
|
||||||
@@ -671,17 +669,17 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This can happen in some weird cases involving multi-touch. We can't start dragging the
|
|
||||||
// widget if this is null, so we break out.
|
|
||||||
if (mCreateWidgetInfo == null) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compose the drag image
|
// Compose the drag image
|
||||||
Bitmap preview;
|
Bitmap preview;
|
||||||
Bitmap outline;
|
Bitmap outline;
|
||||||
float scale = 1f;
|
float scale = 1f;
|
||||||
if (createItemInfo instanceof PendingAddWidgetInfo) {
|
if (createItemInfo instanceof PendingAddWidgetInfo) {
|
||||||
|
// This can happen in some weird cases involving multi-touch. We can't start dragging
|
||||||
|
// the widget if this is null, so we break out.
|
||||||
|
if (mCreateWidgetInfo == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
PendingAddWidgetInfo createWidgetInfo = mCreateWidgetInfo;
|
PendingAddWidgetInfo createWidgetInfo = mCreateWidgetInfo;
|
||||||
createItemInfo = createWidgetInfo;
|
createItemInfo = createWidgetInfo;
|
||||||
int spanX = createItemInfo.spanX;
|
int spanX = createItemInfo.spanX;
|
||||||
|
|||||||
Reference in New Issue
Block a user