keiji / mangaview

An ImageView for reading manga(comics) for Android.
Apache License 2.0
35 stars 4 forks source link

The current page index is reset unexpectedly on ONYX BOOX. #11

Open keiji opened 3 years ago

keiji commented 3 years ago

System information

Describe the current behavior

Describe the expected behavior The current page index(number) should be restored correctly.

keiji commented 3 years ago

I checked the sample app works fine on Essential PH-1 and Pixel 4a.

I find out that View.onRestoreInstanceState method has not be called if ONYX BOOX's display orientation set horizontal. View.onSaveInstanceState method is called correctly but View.onRestoreInstanceState is not.

This problem reproduce rate is not 100%. Sometimes, ONYX BOOX may call View.onRestoreInstanceState correctly.