Only draw AbsListView selector when focused or pressed
BUG: 18176135 Change-Id: Ibd9d9c0f439e5daa8eba606abc5ff055a3d8ff0c
This commit is contained in:
@@ -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