diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-25 15:33:18 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-26 13:37:21 +0000 |
commit | 10a574501d4f4426ab5cec0a613b60d1d0baed44 (patch) | |
tree | 9f8718ecf66b46193d5eee04a947faf562318a73 /src/com/cyanogenmod/trebuchet/FocusHelper.java | |
parent | b79406c0a85568dbc9150bbdb5339405b924f1fb (diff) | |
download | packages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.zip packages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.tar.gz packages_apps_trebuchet-10a574501d4f4426ab5cec0a613b60d1d0baed44.tar.bz2 |
Cleanup
Change-Id: Ied69f285305dbc3e1bf62676f23c47d6c6969e0a
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/FocusHelper.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/FocusHelper.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/trebuchet/FocusHelper.java b/src/com/cyanogenmod/trebuchet/FocusHelper.java index d87fc67..0ac6e24 100644 --- a/src/com/cyanogenmod/trebuchet/FocusHelper.java +++ b/src/com/cyanogenmod/trebuchet/FocusHelper.java @@ -139,7 +139,7 @@ public class FocusHelper { final TabWidget tabs = tabHost.getTabWidget(); final int widgetIndex = parent.indexOfChild(w); final int widgetCount = parent.getChildCount(); - final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parent)); + final int pageIndex = container.indexToPage(container.indexOfChild(parent)); final int pageCount = container.getChildCount(); final int cellCountX = parent.getCellCountX(); final int cellCountY = parent.getCellCountY(); @@ -148,7 +148,7 @@ public class FocusHelper { final int action = e.getAction(); final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); - ViewGroup newParent = null; + ViewGroup newParent; // Now that we load items in the bg asynchronously, we can't just focus // child siblings willy-nilly View child = null; @@ -299,7 +299,7 @@ public class FocusHelper { final TabWidget tabs = tabHost.getTabWidget(); final int iconIndex = itemContainer.indexOfChild(v); final int itemCount = itemContainer.getChildCount(); - final int pageIndex = ((PagedView) container).indexToPage(container.indexOfChild(parentLayout)); + final int pageIndex = container.indexToPage(container.indexOfChild(parentLayout)); final int pageCount = container.getChildCount(); final int x = iconIndex % countX; @@ -307,10 +307,10 @@ public class FocusHelper { final int action = e.getAction(); final boolean handleKeyEvent = (action != KeyEvent.ACTION_UP); - ViewGroup newParent = null; + ViewGroup newParent; // Side pages do not always load synchronously, so check before focusing child siblings // willy-nilly - View child = null; + View child; boolean wasHandled = false; switch (keyCode) { case KeyEvent.KEYCODE_DPAD_LEFT: |