summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweijiew <weijiew@codeaurora.org>2016-09-14 08:27:42 +0800
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:41 +0200
commit924a03cc4f562c9f23bd7f230faf04e4857a8b9a (patch)
tree20c3557e5ee16c8b6f746286c6a1ef072292506a
parent502f8a8789299725c4bba1c6ee661bd84aaa4323 (diff)
downloadandroid_packages_apps_Snap-924a03cc4f562c9f23bd7f230faf04e4857a8b9a.zip
android_packages_apps_Snap-924a03cc4f562c9f23bd7f230faf04e4857a8b9a.tar.gz
android_packages_apps_Snap-924a03cc4f562c9f23bd7f230faf04e4857a8b9a.tar.bz2
SnapdragonCamera: Screen goes black when saving panoramic pictures
Layout() method can't be triggered and caused saving view missing when the phone was upside down, so set the view to invisible instead of gone Change-Id: Id331d14c0795a47b3acb6139089464742f40c404 CRs-Fixed: 1066232
-rw-r--r--res/layout/pano_module_capture.xml6
-rw-r--r--res/layout/pano_module_review.xml2
2 files changed, 4 insertions, 4 deletions
diff --git a/res/layout/pano_module_capture.xml b/res/layout/pano_module_capture.xml
index 9f53ff1..1398b53 100644
--- a/res/layout/pano_module_capture.xml
+++ b/res/layout/pano_module_capture.xml
@@ -91,7 +91,7 @@
android:layout_weight="1"
android:gravity="center_vertical"
android:src="@drawable/pano_direction_left_indicator"
- android:visibility="gone" />
+ android:visibility="invisible" />
<com.android.camera.PanoProgressBar
android:id="@+id/pano_pan_progress_bar"
@@ -100,7 +100,7 @@
android:layout_weight="9"
android:gravity="center_vertical"
android:src="@drawable/ic_pan_progression"
- android:visibility="gone" />
+ android:visibility="invisible" />
<ImageView
android:id="@+id/pano_pan_right_indicator"
@@ -111,7 +111,7 @@
android:layout_weight="1"
android:gravity="center_vertical"
android:src="@drawable/pano_direction_right_indicator"
- android:visibility="gone" />
+ android:visibility="invisible" />
</LinearLayout>
</FrameLayout>
</LinearLayout>
diff --git a/res/layout/pano_module_review.xml b/res/layout/pano_module_review.xml
index 6aeaa75..aecf6f8 100644
--- a/res/layout/pano_module_review.xml
+++ b/res/layout/pano_module_review.xml
@@ -17,7 +17,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pano_review_layout"
android:orientation="vertical"
- android:visibility="gone"
+ android:visibility="invisible"
android:layout_height="match_parent"
android:layout_width="match_parent">