Minor cleanups after #6424#6438
Conversation
|
Quick question @pazos: I mentioned in #6424 that on Android (The callbacks are also used to send the |
Is worse than that.
Is not hard but is a PITA (as anything android for us):
|
|
Something like that is actually (ab)used to: clean text selection after returning back from a 3rd party app, open a file from a intent and importing files from the SAF file picker. See https://github.com/koreader/koreader/blob/master/frontend/device/android/device.lua#L153-L187 for everything we check on resume. |
|
@pazos: Ah, thanks for the details. So a cheap workaround like on Kindle might not be enough, then :/ koreader/frontend/device/kindle/device.lua Lines 103 to 120 in 93eadba (Especially since the connectivity check might ultimately call Oh, well :/. |
|
Not sure how important is that on android, because even if we don't trigger a turnOn/turnOff action other programs or the system can trigger it, so a check of current state is always needed on resume. What we can do is:
|
* Minor cosmetic code cleanup * String tweak
This change is