diff options
author | Steve Kondik <steve@cyngn.com> | 2016-11-09 00:08:42 -0800 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-04 22:00:40 +0200 |
commit | aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c (patch) | |
tree | 6bd03d6ff4f7fcb7053808cb437f7abe0779f628 /src/com/android/camera/CaptureModule.java | |
parent | 13ca178c2f1c614bc6c615b29986fc6002a89d5a (diff) | |
download | android_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.tar.gz android_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.tar.bz2 android_packages_apps_Snap-aa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c.zip |
snap: UX improvements v1
* Make the camera controls do sane things- get rid of the
manual placement of every widget and use layouts
* Animate everything correctly
* Show ripples when clicking the shutter
* Clean up a metric ton of dead code
* Moved more code into BaseUI
* Make setting up the camera controls less verbose and magical
* Fixed up panorama layout
Change-Id: Iaed44ca0201a2e2641e1c2460d3ff9ec3eae2d85
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 7c6ccf8a1..718f55f97 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -71,6 +71,7 @@ import android.view.OrientationEventListener; import android.view.Surface; import android.view.SurfaceHolder; import android.view.View; +import android.view.ViewGroup; import android.widget.Toast; import com.android.camera.exif.ExifInterface; @@ -955,7 +956,7 @@ public class CaptureModule implements CameraModule, PhotoController, setCurrentMode(); mContentResolver = mActivity.getContentResolver(); - mUI = new CaptureUI(activity, this, parent); + mUI = new CaptureUI(activity, this, (ViewGroup) parent); mUI.initializeControlByIntent(); mFocusStateListener = new FocusStateListener(mUI); @@ -1171,14 +1172,6 @@ public class CaptureModule implements CameraModule, PhotoController, CaptureRequest request, TotalCaptureResult result) { Log.d(TAG, "captureStillPicture Longshot onCaptureCompleted: " + id); - if (mLongshotActive) { - mActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - mUI.doShutterAnimation(); - } - }); - } } @Override @@ -1186,14 +1179,6 @@ public class CaptureModule implements CameraModule, PhotoController, CaptureRequest request, CaptureFailure result) { Log.d(TAG, "captureStillPicture Longshot onCaptureFailed: " + id); - if (mLongshotActive) { - mActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - mUI.doShutterAnimation(); - } - }); - } } @Override @@ -1848,7 +1833,6 @@ public class CaptureModule implements CameraModule, PhotoController, initializeValues(); updatePreviewSize(); mUI.showSurfaceView(); - mUI.setSwitcherIndex(); mCameraIdList = new ArrayList<>(); if (mSound == null) { |