Merge "Removing click delay from hotseat"

This commit is contained in:
Michael Jurka
2011-10-04 15:13:44 -07:00
committed by Android (Google) Code Review
3 changed files with 11 additions and 1 deletions
@@ -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);