Home
last modified time | relevance | path

Searched refs:checkedPos (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java490 final int checkedPos = mListView.getCheckedItemPosition(); in onRestoreInstanceState() local
491 final boolean hasValidSelection = checkedPos != ListView.INVALID_POSITION; in onRestoreInstanceState()
492 mLastSelected = checkedPos; in onRestoreInstanceState()
493 setAlwaysButtonEnabled(hasValidSelection, checkedPos, true); in onRestoreInstanceState()
496 mListView.setSelection(checkedPos); in onRestoreInstanceState()
517 final int checkedPos = mListView.getCheckedItemPosition(); in onItemClick() local
518 final boolean hasValidSelection = checkedPos != ListView.INVALID_POSITION; in onItemClick()
519 if (mAlwaysUseOption && (!hasValidSelection || mLastSelected != checkedPos)) { in onItemClick()
520 setAlwaysButtonEnabled(hasValidSelection, checkedPos, true); in onItemClick()
523 mListView.smoothScrollToPosition(checkedPos); in onItemClick()
[all …]