summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2013-10-31 15:03:35 -0700
committerAdam Cohen <adamcohen@google.com>2013-10-31 15:04:59 -0700
commit917e38851cbc6caffe1f8dade4db452bace522ba (patch)
tree86b3ec601f02ece219acf412509182cb26bdd392 /src/com/android/launcher3/CellLayout.java
parent3b185e2513bcc3318753c21d3909d8dab2291e31 (diff)
downloadandroid_packages_apps_Trebuchet-917e38851cbc6caffe1f8dade4db452bace522ba.tar.gz
android_packages_apps_Trebuchet-917e38851cbc6caffe1f8dade4db452bace522ba.tar.bz2
android_packages_apps_Trebuchet-917e38851cbc6caffe1f8dade4db452bace522ba.zip
Fix issue with adding widget with config activity to empty screen (issue 11381059)
Change-Id: Ic7eecb30422e7a6cf35ebe8470d9eba8752d406e
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index bf1e9c931..df16d4194 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -76,6 +76,7 @@ public class CellLayout extends ViewGroup {
private int mHeightGap;
private int mMaxGap;
private boolean mScrollingTransformsDirty = false;
+ private boolean mDropPending = false;
private final Rect mRect = new Rect();
private final CellInfo mCellInfo = new CellInfo();
@@ -332,6 +333,14 @@ public class CellLayout extends ViewGroup {
mShortcutsAndWidgets.setInvertIfRtl(invert);
}
+ public void setDropPending(boolean pending) {
+ mDropPending = pending;
+ }
+
+ public boolean isDropPending() {
+ return mDropPending;
+ }
+
private void invalidateBubbleTextView(BubbleTextView icon) {
final int padding = icon.getPressedOrFocusedBackgroundPadding();
invalidate(icon.getLeft() + getPaddingLeft() - padding,