Update Birthdays widget

This commit is contained in:
Evgeny
2024-05-05 16:25:47 +04:00
parent 029781b7c2
commit f90e811498

View File

@@ -3,7 +3,7 @@
-- description = "Shows upcoming birthdays from the contacts" -- description = "Shows upcoming birthdays from the contacts"
-- type = "widget" -- type = "widget"
-- author = "Andrey Gavrilov" -- author = "Andrey Gavrilov"
-- version = "1.0" -- version = "1.1"
local prefs = require "prefs" local prefs = require "prefs"
local fmt = require "fmt" local fmt = require "fmt"
@@ -27,6 +27,10 @@ function on_resume()
if not prefs.count then if not prefs.count then
prefs.count = 10 prefs.count = 10
end end
phone:request_permission()
end
function on_permission_granted()
contacts = calendar:contacts_events() contacts = calendar:contacts_events()
redraw() redraw()
end end