Back out a2cdb1000e51 (bug 801627) because of Android crashes on a CLOSED TREE

This commit is contained in:
Matt Brubeck 2012-10-22 09:57:00 -07:00
parent 3e5fcf6f52
commit 5d2338b046
2 changed files with 4 additions and 14 deletions

View File

@ -1357,15 +1357,15 @@ abstract public class GeckoApp
// We need do do this on the next iteration in order to avoid
// a deadlock, see comment below in FullScreenHolder
mMainHandler.post(new Runnable() {
mMainHandler.post(new Runnable() {
public void run() {
mLayerView.show();
mLayerView.setVisibility(View.VISIBLE);
}
});
FrameLayout decor = (FrameLayout)getWindow().getDecorView();
decor.removeView(mFullScreenPluginContainer);
mFullScreenPluginView = null;
GeckoScreenOrientationListener.getInstance().unlockScreenOrientation();
@ -2651,7 +2651,7 @@ abstract public class GeckoApp
mMainHandler.post(new Runnable() {
public void run() {
mLayerView.hide();
mLayerView.setVisibility(View.INVISIBLE);
}
});
}

View File

@ -110,16 +110,6 @@ public class LayerView extends FrameLayout {
GeckoAccessibility.setDelegate(this);
}
public void show() {
View view = mTextureView != null ? mTextureView : mSurfaceView;
view.setVisibility(View.VISIBLE);
}
public void hide() {
View view = mTextureView != null ? mTextureView : mSurfaceView;
view.setVisibility(View.INVISIBLE);
}
public void destroy() {
if (mLayerClient != null) {
mLayerClient.destroy();