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

Commit

Permalink
Fixes not updating the private browsing mode tooltip (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Aug 9, 2019
1 parent e51f454 commit 8437d6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@ private void handleSessionState() {
if (isPrivateMode) {
mWidgetManager.pushWorldBrightness(this, WidgetManagerDelegate.DEFAULT_DIM_BRIGHTNESS);
mPrivateButton.setImageResource(R.drawable.ic_icon_tray_private_browsing_on_v2);
mPrivateButton.setTooltip(getResources().getString(R.string.private_browsing_exit_tooltip));
mPrivateButton.setTooltip(getResources().getString(R.string.private_browsing_exit_tooltip));

} else {
mWidgetManager.popWorldBrightness(this);
mPrivateButton.setImageResource(R.drawable.ic_icon_tray_private_browsing_v2);
mPrivateButton.setTooltip(getResources().getString(R.string.private_browsing_enter_tooltip));
}
mPrivateButton.setTooltip(getResources().getString(R.string.private_browsing_enter_tooltip));
}

mIsLastSessionPrivate = isPrivateMode;
Expand Down

0 comments on commit 8437d6e

Please sign in to comment.