mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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