From: Doris Liu Date: Wed, 27 Mar 2013 17:52:50 +0000 (-0700) Subject: Workaround for switcher popup being cut off on ICS X-Git-Tag: android-x86-6.0-r3~68^2~28^2~213^2~19^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~428^2~2^2~201^2~131^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=44a312b18ada8dc2df6c7eaba27dbcd065acbead;p=android-x86%2Fpackages-apps-Camera2.git Workaround for switcher popup being cut off on ICS Bug: 8390375 Change-Id: Ie4a196824751ae6717849f210c3e8e17e4aa014d --- diff --git a/src/com/android/camera/ui/CameraSwitcher.java b/src/com/android/camera/ui/CameraSwitcher.java index e9551ada2..b046ff7ae 100644 --- a/src/com/android/camera/ui/CameraSwitcher.java +++ b/src/com/android/camera/ui/CameraSwitcher.java @@ -313,6 +313,8 @@ public class CameraSwitcher extends RotateImageView // Verify that we weren't canceled if (showsPopup()) { setVisibility(View.INVISIBLE); + // request layout to make sure popup is laid out correctly on ICS + mPopup.requestLayout(); } } };