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

Commit

Permalink
Ensure that tab dialog and it's surface are invalidated before they a…
Browse files Browse the repository at this point in the history
…re shown (#2179)
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 6, 2019
1 parent 1e9e4a8 commit 142a76b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ public void releaseWidget() {
public void show(int aShowFlags) {
super.show(aShowFlags);
refreshTabs();
invalidate();
mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS);
mTabsList.requestFocusFromTouch();
}

@Override
public void hide(@HideFlags int aHideFlags) {
super.hide(aHideFlags);

mRenderer.clearSurface();
mWidgetManager.popWorldBrightness(this);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ void drawEnd() {
mSurfaceCanvas = null;
}

void clearSurface() {
drawBegin();
drawEnd();
}

int width() {
return mTextureWidth;
}
Expand Down

0 comments on commit 142a76b

Please sign in to comment.