summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-10-04 15:02:05 -0700
committerMichael Jurka <mikejurka@google.com>2011-10-04 15:02:49 -0700
commite6235dd225404239b55c459245543f3302326112 (patch)
treed09c11620d5e38c2bacdca898f38240e72fd35f0 /src
parent1e57c2822c2c38ef3aa48fce096da865679f123f (diff)
downloadandroid_packages_apps_Trebuchet-e6235dd225404239b55c459245543f3302326112.tar.gz
android_packages_apps_Trebuchet-e6235dd225404239b55c459245543f3302326112.tar.bz2
android_packages_apps_Trebuchet-e6235dd225404239b55c459245543f3302326112.zip
Removing click delay from hotseat
Change-Id: I9b227b387f43f2cc446ec93c65a7307ca8be53e8
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/BubbleTextView.java2
-rw-r--r--src/com/android/launcher2/CellLayout.java5
-rw-r--r--src/com/android/launcher2/CellLayoutChildren.java5
3 files changed, 11 insertions, 1 deletions
diff --git a/src/com/android/launcher2/BubbleTextView.java b/src/com/android/launcher2/BubbleTextView.java
index cdc89ba61..51fdc2eb6 100644
--- a/src/com/android/launcher2/BubbleTextView.java
+++ b/src/com/android/launcher2/BubbleTextView.java
@@ -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;
}
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java
index c2e48e886..ad87fa603 100644
--- a/src/com/android/launcher2/CellLayout.java
+++ b/src/com/android/launcher2/CellLayout.java
@@ -639,6 +639,11 @@ public class CellLayout extends ViewGroup {
}
@Override
+ public boolean shouldDelayChildPressedState() {
+ return false;
+ }
+
+ @Override
public void cancelLongPress() {
super.cancelLongPress();
diff --git a/src/com/android/launcher2/CellLayoutChildren.java b/src/com/android/launcher2/CellLayoutChildren.java
index ac8c2ca16..35f5af104 100644
--- a/src/com/android/launcher2/CellLayoutChildren.java
+++ b/src/com/android/launcher2/CellLayoutChildren.java
@@ -122,6 +122,11 @@ public class CellLayoutChildren extends ViewGroup {
}
@Override
+ public boolean shouldDelayChildPressedState() {
+ return false;
+ }
+
+ @Override
public void requestChildFocus(View child, View focused) {
super.requestChildFocus(child, focused);
if (child != null) {