Landscape FM / Refactor rotation (#6309)

* landscape FM / Refactor rotation

refactor and simplify the orientation handling code. the user generally cares about the rotation (what direction the device is facing) and not about if koreader is displaying in portrait or landscape mode

* bump base

update luasocket, libjpeg-turbo, curl
add logging to evernote-sdk-lua
update framebuffer for proper rotation
This commit is contained in:
yparitcher authored and GitHub committed 2020-07-01 16:17:41 -04:00
1 parent 09c654c7ec
commit f7d538b108
30 files changed
+287 -157

No files matched your search

+4 -1
View File
@@ -1,5 +1,5 @@
describe("Readerui module", function()
local DocumentRegistry, ReaderUI, DocSettings, UIManager
local DocumentRegistry, ReaderUI, DocSettings, UIManager, Screen
local sample_epub = "spec/front/unit/data/leaves.epub"
local readerui
setup(function()
@@ -8,8 +8,10 @@ describe("Readerui module", function()
ReaderUI = require("apps/reader/readerui")
DocSettings = require("docsettings")
UIManager = require("ui/uimanager")
Screen = require("device").screen
readerui = ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_epub),
}
end)
@@ -40,6 +42,7 @@ describe("Readerui module", function()
local new_readerui = ReaderUI:_getRunningInstance()
assert.is.truthy(new_readerui.document)
ReaderUI:new{
dimen = Screen:getSize(),
document = DocumentRegistry:openDocument(sample_epub)
}:onClose()
assert.is.truthy(new_readerui.document)