mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Don't show Toast off the UiThread
This commit is contained in:
@@ -243,10 +243,11 @@ class SettingsViewModel extends DbViewModel implements EventListener {
|
||||
});
|
||||
}
|
||||
|
||||
@AnyThread
|
||||
private void onSetAvatarFailed() {
|
||||
Toast.makeText(getApplication(),
|
||||
R.string.change_profile_picture_failed_message,
|
||||
LENGTH_LONG).show();
|
||||
androidExecutor.runOnUiThread(() -> Toast.makeText(getApplication(),
|
||||
R.string.change_profile_picture_failed_message, LENGTH_LONG)
|
||||
.show());
|
||||
}
|
||||
|
||||
LiveData<OwnIdentityInfo> getOwnIdentityInfo() {
|
||||
|
||||
Reference in New Issue
Block a user