cervantes: add usb storage on devices w/updated 3rd party tools

This commit is contained in:
Martín Fernández
2019-02-15 01:18:30 +01:00
parent 51ce6664e5
commit 301aa580cc
7 changed files with 103 additions and 2 deletions

View File

@@ -21,6 +21,22 @@ if Device:hasFrontlight() then
}
end
if Device:canToggleMassStorage() then
local MassStorage = require("ui/elements/mass_storage")
-- mass storage settings
common_settings.mass_storage_settings = {
text = _("USB mass storage"),
sub_item_table = MassStorage:getSettingsMenuTable()
}
-- mass storage actions
common_settings.mass_storage_actions = {
text = _("Start USB storage"),
callback = function() MassStorage:start() end,
}
end
if Device:setDateTime() then
common_settings.time = {
text = _("Time and date"),