Contacts menu script: do not load real icons (slow)

This commit is contained in:
Evgeny
2023-09-20 12:56:37 +04:00
parent 7868273f74
commit da6e0435d5

View File

@@ -28,8 +28,12 @@ function on_drawer_open()
names = map(contacts, function(it) return it.name end) names = map(contacts, function(it) return it.name end)
keys = map(contacts, function(it) return it.lookup_key end) keys = map(contacts, function(it) return it.lookup_key end)
icons = map(contacts, function(it) return it.name:sub(1,1) end)
phone:request_icons(keys) drawer:show_list(names, icons, nil, true)
-- Uncomment this if you want to use real icons (slow)
--phone:request_icons(keys)
end end
function on_icons_ready(icons) function on_icons_ready(icons)