Merge "Removing click delay from hotseat"
This commit is contained in:
committed by
Android (Google) Code Review
commit
9b09219df6
@@ -221,7 +221,7 @@ public class BubbleTextView extends TextView {
|
||||
// have to call invalidate as soon as the state is "pressed"
|
||||
if (isPressed()) {
|
||||
mDidInvalidateForPressedState = true;
|
||||
invalidate();
|
||||
setCellLayoutPressedOrFocusedIcon();
|
||||
} else {
|
||||
mDidInvalidateForPressedState = false;
|
||||
}
|
||||
|
||||
@@ -638,6 +638,11 @@ public class CellLayout extends ViewGroup {
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cancelLongPress() {
|
||||
super.cancelLongPress();
|
||||
|
||||
@@ -121,6 +121,11 @@ public class CellLayoutChildren extends ViewGroup {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestChildFocus(View child, View focused) {
|
||||
super.requestChildFocus(child, focused);
|
||||
|
||||
Reference in New Issue
Block a user