summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-11-07 17:32:01 -0800
committerMichael Kolb <kolby@google.com>2011-11-07 17:32:01 -0800
commita30e4fb67322f444475de6103b66ce594ef39e04 (patch)
tree8113f242d680f036d4134f1524b3286fa76a06ab
parent6ca215c4870818e6f1fa604f0c623deabb971d41 (diff)
downloadpackages_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.java4
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(),