From c4b0ce798dc48538c5016d2047e0a5c026f61b05 Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 14 Nov 2019 18:05:47 +0100 Subject: [PATCH] Hide the settings panel after clicking on fxa login (#2259) --- .../mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java index 33cab2d68..83922bc8d 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java @@ -280,13 +280,13 @@ private void manageAccount() { switch(mAccounts.getAccountStatus()) { case SIGNED_OUT: case NEEDS_RECONNECT: + hide(REMOVE_WIDGET); mAccounts.getAuthenticationUrlAsync().thenAcceptAsync((url) -> { if (url != null) { mAccounts.setLoginOrigin(Accounts.LoginOrigin.SETTINGS); WidgetManagerDelegate widgetManager = ((VRBrowserActivity)getContext()); widgetManager.openNewTabForeground(url); widgetManager.getFocusedWindow().getSession().setUaMode(GeckoSessionSettings.USER_AGENT_MODE_MOBILE); - hide(REMOVE_WIDGET); } }, mUIThreadExecutor).exceptionally(throwable -> { Log.d(LOGTAG, "Error getting the authentication URL: " + throwable.getLocalizedMessage());