Kindle: Make ReaderActivityIndicator a stub (#7002)

And only actually flesh it out and register it in the very few cases
where it can actually do something (i.e., old FW 5.x with KPV).
This commit is contained in:
NiLuJe
2020-12-18 18:26:58 +01:00
committed by GitHub
parent 04a980649f
commit 17356bbb2a
3 changed files with 45 additions and 16 deletions

View File

@@ -222,13 +222,15 @@ function ReaderUI:init()
document = self.document,
})
end
-- activity indicator when some configurations take long take to affect
self:registerModule("activityindicator", ReaderActivityIndicator:new{
dialog = self.dialog,
view = self.view,
ui = self,
document = self.document,
})
-- activity indicator for when some settings take time to take effect (Kindle under KPV)
if not ReaderActivityIndicator:isStub() then
self:registerModule("activityindicator", ReaderActivityIndicator:new{
dialog = self.dialog,
view = self.view,
ui = self,
document = self.document,
})
end
end
-- for page specific controller
if self.document.info.has_pages then