diff options
author | Winson Chung <winsonc@google.com> | 2011-01-27 16:46:51 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-01-27 17:35:43 -0800 |
commit | 6e3140865d3f0def2e55934d8b0b2c1503386e54 (patch) | |
tree | 8d24c9e1c76bd5cbd39fb7b394e94a655f583826 /src/com/android/launcher2/CellLayout.java | |
parent | 65af56cf9d8d63e10cf961e1468a5e86d4081405 (diff) | |
download | android_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.tar.gz android_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.tar.bz2 android_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.zip |
Fixes for other places where we expect CellLayoutChildren instead of CellLayout. (3392097)
Change-Id: I9df13c413ce62a2760ce6a8ebafed1e948088de2
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index de75fd344..448b76604 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -267,6 +267,13 @@ public class CellLayout extends ViewGroup { addView(mChildren); } + public CellLayoutChildren getChildrenLayout() { + if (getChildCount() > 0) { + return (CellLayoutChildren) getChildAt(0); + } + return null; + } + public void setIsDefaultDropTarget(boolean isDefaultDropTarget) { if (mIsDefaultDropTarget != isDefaultDropTarget) { mIsDefaultDropTarget = isDefaultDropTarget; |