Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java491 final boolean hasValidSelection = checkedPos != ListView.INVALID_POSITION; in onRestoreInstanceState()
493 setAlwaysButtonEnabled(hasValidSelection, checkedPos, true); in onRestoreInstanceState()
494 mOnceButton.setEnabled(hasValidSelection); in onRestoreInstanceState()
495 if (hasValidSelection) { in onRestoreInstanceState()
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()
521 mOnceButton.setEnabled(hasValidSelection); in onItemClick()
522 if (hasValidSelection) { in onItemClick()
564 private void setAlwaysButtonEnabled(boolean hasValidSelection, int checkedPos, in setAlwaysButtonEnabled() argument
[all …]