mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 05:39:53 +01:00
[android] prevent empty state message from showing up briefly when clearing list
This commit is contained in:
@@ -888,6 +888,7 @@ public class ConversationActivity extends BriarActivity
|
|||||||
boolean allDeleted) {
|
boolean allDeleted) {
|
||||||
runOnUiThreadUnlessDestroyed(() -> {
|
runOnUiThreadUnlessDestroyed(() -> {
|
||||||
adapter.clear();
|
adapter.clear();
|
||||||
|
list.showProgressBar(); // otherwise clearing shows empty state
|
||||||
loadMessages();
|
loadMessages();
|
||||||
if (!allDeleted) showNotAllDeletedDialog();
|
if (!allDeleted) showNotAllDeletedDialog();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user