mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
Restart page list on setting new boundary
This commit is contained in:
@@ -566,6 +566,9 @@ public class ViewModelMessages extends ViewModel {
|
||||
void setCallback(LifecycleOwner owner, BoundaryCallbackMessages.IBoundaryCallbackMessages callback) {
|
||||
if (boundary != null) {
|
||||
BoundaryCallbackMessages.State state = boundary.setCallback(callback);
|
||||
PagedList<TupleMessageEx> plist = list.getValue();
|
||||
if (plist != null)
|
||||
plist.loadAround(0);
|
||||
|
||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||
|
||||
Reference in New Issue
Block a user