diff options
author | Hyunyoung Song <hyunyoungs@google.com> | 2015-02-20 14:25:27 -0800 |
---|---|---|
committer | Hyunyoung Song <hyunyoungs@google.com> | 2015-02-20 14:25:27 -0800 |
commit | ee3e6a7b777e58552a26ab8a10641886588e9196 (patch) | |
tree | 0d77b5694a003f0d7b97f2e0d4025df880927763 /src/com/android/launcher3/CellLayout.java | |
parent | d3f035797e85cae0d64ddc1be58dcc88ac246109 (diff) | |
download | android_packages_apps_Trebuchet-ee3e6a7b777e58552a26ab8a10641886588e9196.tar.gz android_packages_apps_Trebuchet-ee3e6a7b777e58552a26ab8a10641886588e9196.tar.bz2 android_packages_apps_Trebuchet-ee3e6a7b777e58552a26ab8a10641886588e9196.zip |
[key event focus handling] Cleanup/Refactor/Feature
1) Focus navigation handling is refactored to Focus utility class.
New 2 step dpad navigation algorithm is inside Focus class
2) Introduced a map (or matrix) that indicates where sparse icons are located inside a grid.
This enables getting rid of the icon sorting logic which was costly.
3) Unified all the dpad handling logic inside the handleXXKeyEvent methods
4) DOWN/UP key will allow navigation between workspace icons and the hotseat
5) Folder icons allow DOWN/UP to navigate to the title
b/19381790
Change-Id: Id45b3f215ef7c1ca5f99b08e3d721e219298627a
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index e6865b2e6..72e28918f 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -578,11 +578,11 @@ public class CellLayout extends ViewGroup { mInterceptTouchListener = listener; } - int getCountX() { + public int getCountX() { return mCountX; } - int getCountY() { + public int getCountY() { return mCountY; } |