Add info about widgets:request_updates() second parameter

This commit is contained in:
Evgeny
2025-01-10 11:12:02 +08:00
parent c416f29b97
commit dd8e3a8379
3 changed files with 10 additions and 3 deletions

View File

@@ -6,6 +6,10 @@ app_pkg = "com.weather.Weather"
--app_pkg = "com.android.chrome"
--app_pkg = "com.whatsapp"
-- Widget size (string from "1x1" to "4x4")
-- In most cases you can use nil
widget_size = nil
-- Globals
labels = {}
providers = {}
@@ -35,7 +39,7 @@ end
function on_click(idx)
if w_content == "" then
wid = widgets:setup(providers[idx])
widgets:request_updates(wid)
widgets:request_updates(wid, widget_size)
else
system:copy_to_clipboard(w_content)
end