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.
This commit is contained in:
Joe Onorato committed 2009-09-25 09:17:07 -07:00
1 parent 6467f30eb6
commit 7bb1749c69
6 files changed
+196 -301

No files matched your search

+10 -1
View File
@@ -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;