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

Commit

Permalink
Hide the settings panel after clicking on fxa login (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Nov 14, 2019
1 parent dd93fed commit c4b0ce7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c4b0ce7

Please sign in to comment.