diff options
author | Winson Chung <winsonc@google.com> | 2011-11-14 11:39:07 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-11-14 13:29:25 -0800 |
commit | c6f10b906fc9c120cafc81046a42b2434ff635a9 (patch) | |
tree | 94b66501b8acebf2384bc86df5d376da1e9876c2 /src/com/android/launcher2/PagedViewCellLayout.java | |
parent | 4db3f7ec76eb16eb999c3233ebed865aca984a53 (diff) | |
download | android_packages_apps_Trebuchet-c6f10b906fc9c120cafc81046a42b2434ff635a9.tar.gz android_packages_apps_Trebuchet-c6f10b906fc9c120cafc81046a42b2434ff635a9.tar.bz2 android_packages_apps_Trebuchet-c6f10b906fc9c120cafc81046a42b2434ff635a9.zip |
Workarounds for a couple crashes. (Bug 5612584, Bug 5613438)
Change-Id: I9669d830a10cc98291737f3f1d561c846c408289
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewCellLayout.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java index 6266ca26f..ef3981346 100644 --- a/src/com/android/launcher2/PagedViewCellLayout.java +++ b/src/com/android/launcher2/PagedViewCellLayout.java @@ -151,6 +151,16 @@ public class PagedViewCellLayout extends ViewGroup implements Page { mChildren.removeViewAt(index); } + /** + * Clears all the key listeners for the individual icons. + */ + public void resetChildrenOnKeyListeners() { + int childCount = mChildren.getChildCount(); + for (int j = 0; j < childCount; ++j) { + mChildren.getChildAt(j).setOnKeyListener(null); + } + } + @Override public int getPageChildCount() { return mChildren.getChildCount(); |