android: call EPD test from within KOReader (#5737)

* android: call EPD test from within KOReader

Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
This commit is contained in:
Martín FernándezandFrans de Jonge authored and GitHub committed 2020-01-04 20:53:49 +01:00
1 parent 2e947e6ffe
commit 419b42cf2c
3 files changed
+14 -1

No files matched your search

@@ -387,6 +387,15 @@ function FileManagerMenu:setUpdateItemTable()
end,
})
end
if Device:isAndroid() then
table.insert(self.menu_items.developer_options.sub_item_table, {
text = _("Start E-ink test"),
callback = function()
Device:epdTest()
end,
})
end
table.insert(self.menu_items.developer_options.sub_item_table, {
text = _("Disable enhanced UI text shaping (xtext)"),
checked_func = function()
+4
View File
@@ -312,6 +312,10 @@ function Device:info()
return common_text..eink_text..wakelocks_text
end
function Device:epdTest()
android.einkTest()
end
function Device:exit()
android.LOGI(string.format("Stopping %s main activity", android.prop.name));
android.lib.ANativeActivity_finish(android.app.activity)