Restart page list on setting new boundary

pull/203/head
M66B 3 years ago
parent 09e61bebe6
commit cb4e24dda7

@ -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)

Loading…
Cancel
Save