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

* android: call EPD test from within KOReader

Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
reviewable/pr5738/r2
Martín Fernández 4 years ago committed by GitHub
parent 2e947e6ffe
commit 419b42cf2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

@ -1 +1 @@
Subproject commit 43cf60f2fe857e0275a5f1295448eeee1e0e479d
Subproject commit e06b1089daeca0e663690cc0aa75ecbbdfb4f22e
Loading…
Cancel
Save