Browse Source

Fix setItemsToThread. Fixes https://github.com/austinhuang0131/barinsta/issues/967

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
eed4036ad9
  1. 9
      app/src/main/java/awais/instagrabber/managers/InboxManager.java

9
app/src/main/java/awais/instagrabber/managers/InboxManager.java

@ -285,8 +285,13 @@ public final class InboxManager {
if (index < 0) return;
final List<DirectThread> threads = inbox.getThreads();
final DirectThread thread = threads.get(index);
thread.setItems(updatedItems);
setThread(inbox, index, thread);
try {
final DirectThread threadClone = (DirectThread) thread.clone();
threadClone.setItems(updatedItems);
setThread(inbox, index, threadClone);
} catch (Exception e) {
Log.e(TAG, "setItemsToThread: ", e);
}
}
}

Loading…
Cancel
Save