Skip to content

Commit

Permalink
Fade background on web prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Mar 13, 2019
1 parent 92d3b45 commit 54fd41d
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -93,6 +93,16 @@ public void onGlobalLayout() {
}
}

public void show(boolean focus) {
super.show(focus);
mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS);
}

public void hide(@HideFlags int aHideFlags) {
super.hide(aHideFlags);
mWidgetManager.popWorldBrightness(this);
}

// WidgetManagerDelegate.FocusChangeListener
@Override
public void onGlobalFocusChanged(View oldFocus, View newFocus) {
Expand Down

0 comments on commit 54fd41d

Please sign in to comment.