From 8b3bb189a824b629b0c55b8e29a77695a8980cd2 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Fri, 9 Aug 2019 16:25:30 +0200 Subject: [PATCH] Fixes not updating the private browsing mode tooltip --- .../shared/org/mozilla/vrbrowser/ui/widgets/TrayWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TrayWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TrayWidget.java index 33012964b..069889b5a 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TrayWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/TrayWidget.java @@ -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;