Bug 801627 - Fix fullscreen Flash on Android r=blassey
This commit is contained in:
@@ -1359,7 +1359,7 @@ abstract public class GeckoApp
|
||||
// a deadlock, see comment below in FullScreenHolder
|
||||
mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
mLayerView.setVisibility(View.VISIBLE);
|
||||
mLayerView.show();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -2651,7 +2651,7 @@ abstract public class GeckoApp
|
||||
|
||||
mMainHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
mLayerView.setVisibility(View.INVISIBLE);
|
||||
mLayerView.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -110,6 +110,16 @@ 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();
|
||||
|
||||
Reference in New Issue
Block a user