1

I am using PagedListAdapter and PageKeyedDataSource from android paging library. I want to restore recyclerview position after screen rotates. How can I achieve this? setInitialLoadKey on LivePagedListBuilder doesn't effect to PageKeyedDataSource.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Axbor Axrorov
  • 2,720
  • 2
  • 17
  • 35

1 Answers1

1

It is not possible to achieve this behavior with PageKeyedDataSource. Instead I have to implement PositionalDataSource

Axbor Axrorov
  • 2,720
  • 2
  • 17
  • 35