diff options
author | Likai Ding <likaid@codeaurora.org> | 2014-12-10 18:09:27 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-01-14 02:10:45 -0800 |
commit | 762b4350b731e1c2189c871dc77627df2be87549 (patch) | |
tree | 53c044e25c0c270b98bef785a86b74d04a00149d /src/com/android/camera/CameraActivity.java | |
parent | ee168be7e40e15c1921b32f6b863ad3843c91bfd (diff) | |
download | android_packages_apps_Snap-762b4350b731e1c2189c871dc77627df2be87549.tar.gz android_packages_apps_Snap-762b4350b731e1c2189c871dc77627df2be87549.tar.bz2 android_packages_apps_Snap-762b4350b731e1c2189c871dc77627df2be87549.zip |
SnapdragonCamera: implement refocus feature
Add a scene mode for refocus. If the latest photo is taken with
refocus, user can click on the preview thumbnail, then refocus it
by tapping on the photo.
Change-Id: I2fd69439467f5a1e33d23d8d239aa3472d88b585
Diffstat (limited to 'src/com/android/camera/CameraActivity.java')
-rw-r--r-- | src/com/android/camera/CameraActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java index d460867a6..849dc33e3 100644 --- a/src/com/android/camera/CameraActivity.java +++ b/src/com/android/camera/CameraActivity.java @@ -527,6 +527,15 @@ public class CameraActivity extends Activity if (img == null) return; Uri uri = img.getContentUri(); + if (mCurrentModule instanceof PhotoModule) { + if (((PhotoModule) mCurrentModule).isRefocus()) { + Intent intent = new Intent(); + intent.setClass(this, RefocusActivity.class); + intent.setData(uri); + startActivity(intent); + return; + } + } Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); } |