diff options
author | Michael Kolb <kolby@google.com> | 2011-11-07 17:32:01 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-11-07 17:32:01 -0800 |
commit | a30e4fb67322f444475de6103b66ce594ef39e04 (patch) | |
tree | 8113f242d680f036d4134f1524b3286fa76a06ab | |
parent | 6ca215c4870818e6f1fa604f0c623deabb971d41 (diff) | |
download | packages_apps_Browser-a30e4fb67322f444475de6103b66ce594ef39e04.zip packages_apps_Browser-a30e4fb67322f444475de6103b66ce594ef39e04.tar.gz packages_apps_Browser-a30e4fb67322f444475de6103b66ce594ef39e04.tar.bz2 |
Add Monkey protection
Bug: 5577443
Change-Id: I61f59ec5e65de0b59890804f2fb0eb7ab182326d
-rw-r--r-- | src/com/android/browser/PhoneUi.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index a13eca3..37d0b34 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -332,7 +332,9 @@ public class PhoneUi extends BaseUi { mAnimScreen.setScaleFactor(1f); } mAnimScreen.set(getTitleBar(), getWebView()); - mCustomViewContainer.addView(mAnimScreen.mMain, COVER_SCREEN_PARAMS); + if (mAnimScreen.mMain.getParent() == null) { + mCustomViewContainer.addView(mAnimScreen.mMain, COVER_SCREEN_PARAMS); + } mCustomViewContainer.setVisibility(View.VISIBLE); mCustomViewContainer.bringToFront(); mAnimScreen.mMain.layout(0, 0, mContentView.getWidth(), |