w2sv / FileNavigator

The missing link between Android and a sorted file system.
https://play.google.com/store/apps/details?id=com.w2sv.filenavigator
Other
198 stars 8 forks source link

[Bug] Navigator becomes inactive when exiting through trash/close all button #46

Closed 8S3aK8 closed 3 months ago

8S3aK8 commented 5 months ago

Overview

https://github.com/w2sv/FileNavigator/assets/144175213/9e1d615e-96f2-410f-a5e0-f8a68b285ab5

The app becomes inactive when exited through the "Trash Button/Close All" Button. If possible, please keep the app active when doing so, thanks.

Also, thank you for the app - I really like it

How to reproduce

As seen in video,

  1. Open and start the navigator
  2. Press the three horizontal bars
  3. Click the trash/close all button

Version

0.2.0

Android Version

Android 14

Device Model

Tecno LI9

8S3aK8 commented 3 months ago

Closing since, found out that this has something more to do with aggressive power savings or memory clean ups with Android 14 more than anything else

w2sv commented 2 months ago

Hey, sorry for taking so long to get back to you. Thank you for the detailed report comprising even a screen recording, greatly appreciate that. As you already said, however, I fear it's not possible to change that, as it is tied to the basic Android process management. If you clear your memory or use the 'close all' button, you're signalling that you want all active non-system app processes to be terminated and the memory to be freed, which naturally also includes the navigator service. And unfortunately (or not, depending on how you look at it), it's not possible to make an app process immune to that. I already tried to make the navigator persist beyond the app being killed, because I too think they should work independently, enabling the navigator to work despite the app being killed, but AFAIK that's just not possible 🤷