Fix the broken build from recent focus navigation handling code

(compilation error).

Change-Id: I9beb63a88f8c7c247f397d0495501dbc0f637456
This commit is contained in:
Hyunyoung Song
2015-03-04 16:33:56 -08:00
parent 3853171963
commit ac721f8d5f

View File

@@ -326,7 +326,7 @@ public class FocusHelper {
parent = getCellLayoutChildrenForIndex(workspace, pageIndex - 1);
if (parent != null) {
iconLayout = (CellLayout) parent.getParent();
matrix = FocusLogic.createSparseMatrix(iconLayout, orientation,
matrix = FocusLogic.createSparseMatrix(iconLayout,
iconLayout.getCountX(), row);
newIconIndex = FocusLogic.handleKeyEvent(keyCode, countX + 1, countY, matrix,
FocusLogic.PIVOT, pageIndex - 1, pageCount);
@@ -353,7 +353,7 @@ public class FocusHelper {
parent = getCellLayoutChildrenForIndex(workspace, pageIndex + 1);
if (parent != null) {
iconLayout = (CellLayout) parent.getParent();
matrix = FocusLogic.createSparseMatrix(iconLayout, orientation, -1, row);
matrix = FocusLogic.createSparseMatrix(iconLayout, -1, row);
newIconIndex = FocusLogic.handleKeyEvent(keyCode, countX + 1, countY, matrix,
FocusLogic.PIVOT, pageIndex, pageCount);
newIcon = parent.getChildAt(newIconIndex);