Merge "Only draw AbsListView selector when focused or pressed" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0c189ca5c4
@@ -2663,7 +2663,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
* @return True if the selector should be shown
|
||||
*/
|
||||
boolean shouldShowSelector() {
|
||||
return (!isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed());
|
||||
return (isFocused() && !isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed());
|
||||
}
|
||||
|
||||
private void drawSelector(Canvas canvas) {
|
||||
|
||||
Reference in New Issue
Block a user