Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 142a76b

Browse files
MortimerGorobluemarvin
authored andcommitted
Ensure that tab dialog and it's surface are invalidated before they are shown (#2179)
1 parent 1e9e4a8 commit 142a76b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TabsWidget.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,15 @@ public void releaseWidget() {
157157
public void show(int aShowFlags) {
158158
super.show(aShowFlags);
159159
refreshTabs();
160+
invalidate();
160161
mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS);
161162
mTabsList.requestFocusFromTouch();
162163
}
163164

164165
@Override
165166
public void hide(@HideFlags int aHideFlags) {
166167
super.hide(aHideFlags);
167-
168+
mRenderer.clearSurface();
168169
mWidgetManager.popWorldBrightness(this);
169170
}
170171

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/UISurfaceTextureRenderer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ void drawEnd() {
7979
mSurfaceCanvas = null;
8080
}
8181

82+
void clearSurface() {
83+
drawBegin();
84+
drawEnd();
85+
}
86+
8287
int width() {
8388
return mTextureWidth;
8489
}

0 commit comments

Comments
 (0)