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

Commit c7e88b2

Browse files
keianhzoMortimerGoro
authored andcommitted
Fixed wrong thread ui call (#2154)
1 parent 340e8ca commit c7e88b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.mozilla.vrbrowser.ui.views.settings.SwitchSetting;
2121
import org.mozilla.vrbrowser.ui.widgets.WidgetManagerDelegate;
2222
import org.mozilla.vrbrowser.utils.SystemUtils;
23+
import org.mozilla.vrbrowser.utils.UIThreadExecutor;
2324

2425
import java.util.Objects;
2526

@@ -133,7 +134,7 @@ void updateCurrentAccountState() {
133134
updateProfile(profile);
134135

135136
} else {
136-
Objects.requireNonNull(mAccounts.updateProfileAsync()).thenAcceptAsync((u) -> updateProfile(mAccounts.accountProfile()));
137+
Objects.requireNonNull(mAccounts.updateProfileAsync()).thenAcceptAsync((u) -> updateProfile(mAccounts.accountProfile()), new UIThreadExecutor());
137138
}
138139
break;
139140

0 commit comments

Comments
 (0)