diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java index 3b9140594..d706fc89b 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java @@ -157,6 +157,7 @@ public void releaseWidget() { public void show(int aShowFlags) { super.show(aShowFlags); refreshTabs(); + invalidate(); mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS); mTabsList.requestFocusFromTouch(); } @@ -164,7 +165,7 @@ public void show(int aShowFlags) { @Override public void hide(@HideFlags int aHideFlags) { super.hide(aHideFlags); - + mRenderer.clearSurface(); mWidgetManager.popWorldBrightness(this); } diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UISurfaceTextureRenderer.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UISurfaceTextureRenderer.java index 43e3773dd..fc6f53c24 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UISurfaceTextureRenderer.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UISurfaceTextureRenderer.java @@ -79,6 +79,11 @@ void drawEnd() { mSurfaceCanvas = null; } + void clearSurface() { + drawBegin(); + drawEnd(); + } + int width() { return mTextureWidth; }