- Lcd devices won't use the SurfaceView, just the good old native content/window (except AndroidTv and ChromeOS)
- All android dialogs will be presented with Material Design on recent devices.
- Added an option to device settings to manage application battery optimization.
- Permissions that require the user to go to a settings page will be presented with a native android dialog.
- bump android-luajit-launcher
- Changes under the hood: koreader/android-luajit-launcher#257
@ -37,7 +37,7 @@ local function canModifyTimeout(timeout)
iftimeout==systemortimeout==screenOnthen
iftimeout==systemortimeout==screenOnthen
returntrue
returntrue
else
else
returnandroid.settings.canWrite()
returnandroid.settings.hasPermission("settings")
end
end
end
end
@ -51,16 +51,12 @@ local function saveAndApplyTimeout(timeout)
end
end
localfunctionrequestWriteSettings()
localfunctionrequestWriteSettings()
localUIManager=require("ui/uimanager")
localtext=_([[
localConfirmBox=require("ui/widget/confirmbox")
AllowKOReadertomodifysystemsettings?
UIManager:show(ConfirmBox:new{
text=_("Allow KOReader to modify system settings?\n\nYou will be prompted with a permission management screen. You'll need to give KOReader permission and then restart the program."),
Youwillbepromptedwithapermissionmanagementscreen.You'll need to give KOReader permission and then restart the program.]])