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ández
2020-01-04 20:53:49 +01:00
committed by GitHub
parent 2e947e6ffe
commit 419b42cf2c
3 changed files with 14 additions and 1 deletions

View File

@@ -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()

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)