fix archive unpin bug

This commit is contained in:
Riko Sakurauchi 2020-01-02 00:19:10 +08:00
parent 936a1ca952
commit 6329546fdc
No known key found for this signature in database
GPG Key ID: 25AC0345B92902AF

View File

@ -883,6 +883,11 @@ public class DialogsActivity extends BaseFragment implements NotificationCenter.
dialogsAdapter.setDialogsType(type);
dialogsAdapter.notifyDataSetChanged();
}
if (archivePullViewState == ARCHIVE_ITEM_STATE_HIDDEN && hasHiddenArchive()) {
layoutManager.scrollToPositionWithOffset(1, 0);
} else {
layoutManager.scrollToPositionWithOffset(0, 0);
}
actionBar.setTitle(getNekoTitle());
}