reorganization
This commit is contained in:
11
samples/app-buttons-sample.lua
Normal file
11
samples/app-buttons-sample.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function on_resume()
|
||||
apps_names = { "Telegram", "WhatsApp", "Google PLay" }
|
||||
apps_pkgs = { "org.telegram.messenger.web", "com.whatsapp", "com.android.vending" }
|
||||
apps_colors = { md_colors.light_blue_500, md_colors.green_500 }
|
||||
|
||||
ui:show_buttons(apps_names, apps_colors)
|
||||
end
|
||||
|
||||
function on_click(idx)
|
||||
system:open_app(apps_pkgs[idx])
|
||||
end
|
||||
Reference in New Issue
Block a user