mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add support of screen brightness settings for Android
and use standrad Android API to query battery level and charging status This should fix #2025, fix #1759 and fix #1415.
This commit is contained in:
@@ -37,9 +37,11 @@ local function update()
|
||||
local update_file = io.open(new_update, "r")
|
||||
if update_file ~= nil then
|
||||
io.close(update_file)
|
||||
A.showProgress()
|
||||
if os.execute("tar xf " .. new_update) == 0 then
|
||||
os.execute("mv " .. new_update .. " " .. installed)
|
||||
end
|
||||
A.dismissProgress()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user