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

Commit 54fd41d

Browse files
committed
Fade background on web prompts
1 parent 92d3b45 commit 54fd41d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ public void onGlobalLayout() {
9393
}
9494
}
9595

96+
public void show(boolean focus) {
97+
super.show(focus);
98+
mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS);
99+
}
100+
101+
public void hide(@HideFlags int aHideFlags) {
102+
super.hide(aHideFlags);
103+
mWidgetManager.popWorldBrightness(this);
104+
}
105+
96106
// WidgetManagerDelegate.FocusChangeListener
97107
@Override
98108
public void onGlobalFocusChanged(View oldFocus, View newFocus) {

0 commit comments

Comments
 (0)