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

Commit c4b0ce7

Browse files
keianhzobluemarvin
authored andcommitted
Hide the settings panel after clicking on fxa login (#2259)
1 parent dd93fed commit c4b0ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/settings/SettingsWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ private void manageAccount() {
280280
switch(mAccounts.getAccountStatus()) {
281281
case SIGNED_OUT:
282282
case NEEDS_RECONNECT:
283+
hide(REMOVE_WIDGET);
283284
mAccounts.getAuthenticationUrlAsync().thenAcceptAsync((url) -> {
284285
if (url != null) {
285286
mAccounts.setLoginOrigin(Accounts.LoginOrigin.SETTINGS);
286287
WidgetManagerDelegate widgetManager = ((VRBrowserActivity)getContext());
287288
widgetManager.openNewTabForeground(url);
288289
widgetManager.getFocusedWindow().getSession().setUaMode(GeckoSessionSettings.USER_AGENT_MODE_MOBILE);
289-
hide(REMOVE_WIDGET);
290290
}
291291
}, mUIThreadExecutor).exceptionally(throwable -> {
292292
Log.d(LOGTAG, "Error getting the authentication URL: " + throwable.getLocalizedMessage());

0 commit comments

Comments
 (0)