Reduce occurrence of the media preview jumping.

This commit is contained in:
Greyson Parrelli committed 2021-11-22 23:39:59 -05:00
1 parent 637a44379c
commit 643b07d564
1 file changed
+1 -1
@@ -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);