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

Ensure that tab dialog and it's surface are invalidated before they are shown #2179

Merged
merged 1 commit into from
Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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