[android] prevent empty state message from showing up briefly when clearing list

This commit is contained in:
Torsten Grote
2019-11-07 15:30:25 -03:00
parent 5c900c443d
commit 71243ce561

View File

@@ -888,6 +888,7 @@ public class ConversationActivity extends BriarActivity
boolean allDeleted) {
runOnUiThreadUnlessDestroyed(() -> {
adapter.clear();
list.showProgressBar(); // otherwise clearing shows empty state
loadMessages();
if (!allDeleted) showNotAllDeletedDialog();
});