am 0c189ca5: Merge "Only draw AbsListView selector when focused or pressed" into lmp-mr1-dev
* commit '0c189ca5c4ee8a61c89d437ff22fd2628b353765': Only draw AbsListView selector when focused or pressed
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
|
* @return True if the selector should be shown
|
||||||
*/
|
*/
|
||||||
boolean shouldShowSelector() {
|
boolean shouldShowSelector() {
|
||||||
return (!isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed());
|
return (isFocused() && !isInTouchMode()) || (touchModeDrawsInPressedState() && isPressed());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void drawSelector(Canvas canvas) {
|
private void drawSelector(Canvas canvas) {
|
||||||
|
|||||||
Reference in New Issue
Block a user