Loading packages/DocumentsUI/src/com/android/documentsui/dirlist/FocusManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,11 @@ class FocusManager implements View.OnFocusChangeListener { * Requests focus on the item that last had focus. Scrolls to that item if necessary. */ public void restoreLastFocus() { if (mAdapter.getItemCount() == 0) { // Nothing to focus. return; } if (mLastFocusPosition != RecyclerView.NO_POSITION) { // The system takes care of situations when a view is no longer on screen, etc, focusItem(mLastFocusPosition); Loading Loading
packages/DocumentsUI/src/com/android/documentsui/dirlist/FocusManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -113,6 +113,11 @@ class FocusManager implements View.OnFocusChangeListener { * Requests focus on the item that last had focus. Scrolls to that item if necessary. */ public void restoreLastFocus() { if (mAdapter.getItemCount() == 0) { // Nothing to focus. return; } if (mLastFocusPosition != RecyclerView.NO_POSITION) { // The system takes care of situations when a view is no longer on screen, etc, focusItem(mLastFocusPosition); Loading