Reduce occurrence of the media preview jumping.

This commit is contained in:
Greyson Parrelli
2021-11-22 23:39:59 -05:00
parent 637a44379c
commit 643b07d564

View File

@@ -44,7 +44,7 @@ public final class PagingMediaLoader extends AsyncLoader<Pair<Cursor, Integer>>
@Override
public @Nullable Pair<Cursor, Integer> loadInBackground() {
ApplicationDependencies.getDatabaseObserver().registerConversationObserver(threadId, observer);
ApplicationDependencies.getDatabaseObserver().registerAttachmentObserver(observer);
Cursor cursor = SignalDatabase.media().getGalleryMediaForThread(threadId, sorting, threadId == MediaDatabase.ALL_THREADS);