Do not immediately set lastViewed

Causes bugs with not showing new lastViewed at all
multisite
Floens 10 years ago
parent 1fd81aceec
commit fe045fd0fc
  1. 4
      Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java

@ -230,10 +230,6 @@ public class ThreadPresenter implements ChanLoader.ChanLoaderCallback, PostAdapt
if (loadable.isThreadMode()) { if (loadable.isThreadMode()) {
int postsSize = result.posts.size(); int postsSize = result.posts.size();
if (loadable.lastViewed < 0) {
loadable.lastViewed = result.posts.get(result.posts.size() - 1).no;
}
if (notificationPostCount < 0) { if (notificationPostCount < 0) {
notificationPostCount = postsSize; notificationPostCount = postsSize;
} else if (postsSize > notificationPostCount) { } else if (postsSize > notificationPostCount) {

Loading…
Cancel
Save