diff options
author | Joe Onorato <joeo@android.com> | 2009-09-24 17:51:01 -0700 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-09-25 09:17:07 -0700 |
commit | 7bb1749c69384faf00b238f0684d3b2e23406451 (patch) | |
tree | 6610a2528260fa55b1921feef192895e6f53af8d /src/com/android/launcher2/HandleView.java | |
parent | 6467f30eb638ae3bf07be1ead1fb93023fd83ba1 (diff) | |
download | android_packages_apps_Trebuchet-7bb1749c69384faf00b238f0684d3b2e23406451.tar.gz android_packages_apps_Trebuchet-7bb1749c69384faf00b238f0684d3b2e23406451.tar.bz2 android_packages_apps_Trebuchet-7bb1749c69384faf00b238f0684d3b2e23406451.zip |
work around and fix bugs
- Make rollo always draw. This works around the bug somewhere that makes
it show gray when all apps shold be closed
- Simplify the SwipeController now that we're not zooming the workspace.
- Make the readback data sane by splitting it to a different allocation.
Now there is one allocation for each direction of data flow.
- Make AllAppsView.isVisible return the correct value.
Diffstat (limited to 'src/com/android/launcher2/HandleView.java')
-rw-r--r-- | src/com/android/launcher2/HandleView.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/com/android/launcher2/HandleView.java b/src/com/android/launcher2/HandleView.java index eebc3ab5d..e6d940d1f 100644 --- a/src/com/android/launcher2/HandleView.java +++ b/src/com/android/launcher2/HandleView.java @@ -21,8 +21,9 @@ import android.widget.ImageView; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; -import android.view.View; +import android.view.MotionEvent; import android.view.KeyEvent; +import android.view.View; public class HandleView extends ImageView { private static final int ORIENTATION_HORIZONTAL = 1; @@ -84,6 +85,14 @@ public class HandleView extends ImageView { return handled; } + @Override + public boolean onTouchEvent(MotionEvent ev) { + if (ev.getAction() == MotionEvent.ACTION_DOWN && mLauncher.isAllAppsVisible()) { + return false; + } + return super.onTouchEvent(ev); + } + private static boolean isDirectionKey(int keyCode) { return keyCode == KeyEvent.KEYCODE_DPAD_DOWN || keyCode == KeyEvent.KEYCODE_DPAD_LEFT || keyCode == KeyEvent.KEYCODE_DPAD_RIGHT || keyCode == KeyEvent.KEYCODE_DPAD_UP; |