summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera
diff options
context:
space:
mode:
authorRay Chen <>2009-03-24 21:12:44 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 21:12:44 -0700
commitc0f54d75e5ca53fc9e3a32b7818a2858b8c81452 (patch)
treed7f4ce92323621f9f23bc5c65a0bc88e803a7010 /src/com/android/camera
parent087497fca0f048f0191cb02e2838819bf210a875 (diff)
downloadLegacyCamera-c0f54d75e5ca53fc9e3a32b7818a2858b8c81452.zip
LegacyCamera-c0f54d75e5ca53fc9e3a32b7818a2858b8c81452.tar.gz
LegacyCamera-c0f54d75e5ca53fc9e3a32b7818a2858b8c81452.tar.bz2
Automated import from //branches/donutburger/...@141969,141969
Diffstat (limited to 'src/com/android/camera')
-rw-r--r--src/com/android/camera/ImageGallery2.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/camera/ImageGallery2.java b/src/com/android/camera/ImageGallery2.java
index 1e02555..8f9456b 100644
--- a/src/com/android/camera/ImageGallery2.java
+++ b/src/com/android/camera/ImageGallery2.java
@@ -235,14 +235,14 @@ public class ImageGallery2 extends Activity {
}
};
- private boolean isPaused() {
+ private boolean canHandleEvent() {
// Don't process event in pause state.
- return mPausing;
+ return (!mPausing) && (mGvs.mCurrentSpec != null);
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
- if (isPaused()) return false;
+ if (!canHandleEvent()) return false;
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) {
mGvs.select(-2, false);
@@ -261,7 +261,7 @@ public class ImageGallery2 extends Activity {
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
- if (isPaused()) return false;
+ if (!canHandleEvent()) return false;
boolean handled = true;
int sel = mGvs.mCurrentSelection;
@@ -1747,7 +1747,7 @@ public class ImageGallery2 extends Activity {
@Override
public boolean onTouchEvent(android.view.MotionEvent ev) {
- if (mGallery.isPaused()) return false;
+ if (!mGallery.canHandleEvent()) return false;
mGestureDetector.onTouchEvent(ev);
return true;