[key event focus handling] (1)hotseat <-> icon now symmetric, (2)support DEL keycode

TL;DR; (1) Key event navigation from and to the hotseat and icons in the workspace
is now symmetric. Since there is one more icon in the hotseat, only left
N-1 icon navigation was symmetric.

(2) KeyEvent.KEYCODE_DEL and KeyEvent.KEYCODE_FORWARD_DEL can now delete icons
from the workspace. The focus move to the previous icon where the focus
traveled from.

Also contains minor styling and indexing issues.

Bug: 15408321
Bug: 19381790

Change-Id: I16cbcb2693e92eebb830997d01c0bf674073dd51
This commit is contained in:
Hyunyoung Song
2015-02-24 14:12:51 -08:00
parent d88d0bdaf1
commit 31178b8237
4 changed files with 81 additions and 50 deletions
+3
View File
@@ -4231,6 +4231,9 @@ public class Workspace extends SmoothPagedView
mDragInfo = null;
}
/**
* For opposite operation. See {@link #addInScreen}.
*/
public void removeWorkspaceItem(View v) {
CellLayout parentCell = getParentCellLayoutForView(v);
if (parentCell != null) {