fix to hide dialog automatically after 2,5 seconds

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-02-15 18:18:57 +01:00
parent 9b8ea52024
commit a22b93f363
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -1023,9 +1023,15 @@ public class ConversationsListController extends BaseController implements Searc
}
}
@Subscribe(threadMode = ThreadMode.BACKGROUND)
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMessageEvent(ConversationsListFetchDataEvent conversationsListFetchDataEvent) {
fetchData();
new Handler().postDelayed(() -> {
if (conversationsListBottomDialog.isShowing()) {
conversationsListBottomDialog.dismiss();
}
}, 2500);
}
private void showDeleteConversationDialog(Bundle savedInstanceState) {