summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-11-09 00:08:42 -0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:40 +0200
commitaa0ed8c3c2985f1f2efcc1d40717c18f509cfb5c (patch)
tree6bd03d6ff4f7fcb7053808cb437f7abe0779f628 /src/com/android/camera/CaptureModule.java
parent13ca178c2f1c614bc6c615b29986fc6002a89d5a (diff)
downloadandroid_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-xsrc/com/android/camera/CaptureModule.java20
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) {