diff options
author | Likai Ding <likaid@codeaurora.org> | 2014-06-17 17:20:16 +0800 |
---|---|---|
committer | Likai Ding <likaid@codeaurora.org> | 2014-06-17 17:26:07 +0800 |
commit | 25e0aae482ee7be72f307768b447af3ffc83f679 (patch) | |
tree | e52073b3b467f8e84c0278927377457644e04b8a | |
parent | 58b31f9123f2060a2ea8726a9176129dca554b34 (diff) | |
download | android_packages_apps_Snap-25e0aae482ee7be72f307768b447af3ffc83f679.tar.gz android_packages_apps_Snap-25e0aae482ee7be72f307768b447af3ffc83f679.tar.bz2 android_packages_apps_Snap-25e0aae482ee7be72f307768b447af3ffc83f679.zip |
Camera2: missing rendering progress bar workaround
If panorama capture is stopped by device rotation, the rendering
progress bar is sometimes not shown due to wrong layout result.
Call requestLayout() on the progress bar as a workaround.
Change-Id: Ib7c848e9ae3ced956dcc88877bb7f33357cdb588
-rw-r--r-- | src/com/android/camera/WideAnglePanoramaUI.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java index c2a31a987..461e7b4d8 100644 --- a/src/com/android/camera/WideAnglePanoramaUI.java +++ b/src/com/android/camera/WideAnglePanoramaUI.java @@ -280,6 +280,10 @@ public class WideAnglePanoramaUI implements bitmap = null; mCaptureLayout.setVisibility(View.GONE); mReviewLayout.setVisibility(View.VISIBLE); + // If capture is stopped by device rotation, the rendering progress bar + // is sometimes not shown due to wrong layout result. It's likely to be + // a framework bug. Call requestLayout() as a workaround. + mSavingProgressBar.requestLayout(); } public void onConfigurationChanged( |