FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.24k stars 710 forks source link

FolioActivity call onDestroy when my app go from Background to Foreground #462

Open luatnd opened 4 years ago

luatnd commented 4 years ago

Issue - Hi I'm using FolioReader-Android for my react-native app. As I can see, when I go from background to foreground, logcat show V/FolioActivity: -> onDestroy ->

My expectation is: User is reading a book > go background > go foreground > User still in reading screen

Actual: User is reading a book > go background > go foreground: User is in MainActivity instead of FolioActivity

It's ok if I lock the screen: User is reading a book > lock screen > unlock screen > User still in reading screen

FolioReader version - latest FolioReader Stock -
Android SDK - Mobile / Tablet / Emulator Info - Physical device Sharp SH01-G

Steps to reproduce / Describe in detail - Above detail