mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +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() {
|
private void onSetAvatarFailed() {
|
||||||
Toast.makeText(getApplication(),
|
androidExecutor.runOnUiThread(() -> Toast.makeText(getApplication(),
|
||||||
R.string.change_profile_picture_failed_message,
|
R.string.change_profile_picture_failed_message, LENGTH_LONG)
|
||||||
LENGTH_LONG).show();
|
.show());
|
||||||
}
|
}
|
||||||
|
|
||||||
LiveData<OwnIdentityInfo> getOwnIdentityInfo() {
|
LiveData<OwnIdentityInfo> getOwnIdentityInfo() {
|
||||||
|
|||||||
Reference in New Issue
Block a user