am 19745dc0: am 0c189ca5: Merge "Only draw AbsListView selector when focused or pressed" into lmp-mr1-dev
* commit '19745dc0f1686dbcadd0107a18e4336ce2de2729': Only draw AbsListView selector when focused or pressed
This commit is contained in:
@@ -2665,7 +2665,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