OSDN Git Service

Workaround for switcher popup being cut off on ICS
authorDoris Liu <tianliu@google.com>
Wed, 27 Mar 2013 17:52:50 +0000 (10:52 -0700)
committerDoris Liu <tianliu@google.com>
Wed, 27 Mar 2013 17:52:50 +0000 (10:52 -0700)
Bug: 8390375
Change-Id: Ie4a196824751ae6717849f210c3e8e17e4aa014d

src/com/android/camera/ui/CameraSwitcher.java

index e9551ad..b046ff7 100644 (file)
@@ -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();
                     }
                 }
             };