diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-09-27 13:52:19 -0700 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-09-27 14:34:40 -0700 |
commit | 141e3cc66815fafce690c889269a30ce7e06c4da (patch) | |
tree | 0015bf18af5d33cb3087321b757b4c992a25f58f /src | |
parent | a79c5e1d807e5c86f5f9ced44eac50076596e1ab (diff) | |
download | LegacyCamera-141e3cc66815fafce690c889269a30ce7e06c4da.zip LegacyCamera-141e3cc66815fafce690c889269a30ce7e06c4da.tar.gz LegacyCamera-141e3cc66815fafce690c889269a30ce7e06c4da.tar.bz2 |
Fall back to standard VIEW intent if cooliris gallery does not exist.
bug:3039893
Change-Id: I52062ba817e2b6393df6c93f41492ca19c32f4f5
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/Camera.java | 7 | ||||
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index 55223a5..ea68bed 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1946,7 +1946,12 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, try { startActivity(intent); } catch (ActivityNotFoundException ex) { - Log.e(TAG, "review image fail", ex); + try { + intent = new Intent(Intent.ACTION_VIEW, mThumbController.getUri()); + startActivity(intent); + } catch (ActivityNotFoundException e) { + Log.e(TAG, "review image fail", e); + } } } else { Log.e(TAG, "Can't view last image."); diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 1648e2c..531fd1b 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -1287,6 +1287,7 @@ public class VideoCamera extends NoSearchActivity } catch (ActivityNotFoundException ex) { try { intent = new Intent(Intent.ACTION_VIEW, mThumbController.getUri()); + startActivity(intent); } catch (ActivityNotFoundException e) { Log.e(TAG, "review video fail", e); } |