summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweijiew <weijiew@codeaurora.org>2016-09-14 08:27:42 +0800
committerSteve Kondik <steve@cyngn.com>2016-11-13 23:48:49 -0800
commita0394c51cd58c6a94d522ce4cb05671b12662146 (patch)
treee98f09dd366b5486fbc519766077a09cf7285dd4
parent14dface2f352ed0dc815884d18e22ef79dfcbbbf (diff)
downloadandroid_packages_apps_Snap-a0394c51cd58c6a94d522ce4cb05671b12662146.zip
android_packages_apps_Snap-a0394c51cd58c6a94d522ce4cb05671b12662146.tar.gz
android_packages_apps_Snap-a0394c51cd58c6a94d522ce4cb05671b12662146.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">