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:
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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Submodule platform/android/luajit-launcher updated: 43cf60f2fe...e06b1089da.
Reference in new issue
Block a user