Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 204eca64 authored by Grace Kloba's avatar Grace Kloba Committed by Android Git Automerger
Browse files

am b42b5a6e: am 2fba6d1c: Merge "Post a message to set SurfaceView to be...

am b42b5a6e: am 2fba6d1c: Merge "Post a message to set SurfaceView to be visible when we switch to use the layout size. Otherwise it will first use the old dimension which can exceed the  limit, which in turn causes the Browser to crash." into froyo

Merge commit 'b42b5a6e' into kraken

* commit 'b42b5a6e':
  Post a message to set SurfaceView to be visible when
parents 9bce8737 b42b5a6e
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -205,7 +205,14 @@ class ViewManager {
                if (sView.getVisibility() == View.VISIBLE) {
                    sView.setVisibility(View.INVISIBLE);
                    sView.getHolder().setSizeFromLayout();
                    // setLayoutParams() only requests the layout. If we set it
                    // to VISIBLE now, it will use the old dimension to set the
                    // size. Post a message to ensure that it shows the new size.
                    mWebView.mPrivateHandler.post(new Runnable() {
                        public void run() {
                            sView.setVisibility(View.VISIBLE);
                        }
                    });
                } else {
                    sView.getHolder().setSizeFromLayout();
                }