Fix Kindle FW detection (#4336)

* Fix version comparisons...
pull/4339/head
NiLuJe 6 years ago committed by GitHub
parent c14eae335a
commit bd6c852cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -131,6 +131,8 @@ function Kindle:outofScreenSaver()
end end
end end
local UIManager = require("ui/uimanager") local UIManager = require("ui/uimanager")
-- NOTE: If we *really* wanted to avoid the framework seeping through, we could use tickAfterNext instead,
-- at the cost of an extra flashing update...
UIManager:nextTick(function() UIManager:setDirty("all", "full") end) UIManager:nextTick(function() UIManager:setDirty("all", "full") end)
end end
self.powerd:afterResume() self.powerd:afterResume()

@ -185,7 +185,7 @@ fi
# Normalize a version string for easy numeric comparisons # Normalize a version string for easy numeric comparisons
# c.f., https://stackoverflow.com/a/37939589 # c.f., https://stackoverflow.com/a/37939589
version() { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; } version() { echo "$@" | awk -F. '{ printf("%d%03d%03d\n", $1,$2,$3); }'; }
# check if kpvbooklet was launched more than once, if not we will disable pillow # check if kpvbooklet was launched more than once, if not we will disable pillow
# there's no pillow if we stopped the framework, and it's only there on systems with upstart anyway # there's no pillow if we stopped the framework, and it's only there on systems with upstart anyway

Loading…
Cancel
Save