From da6e0435d5bdc22840a0330325edc659a18ba752 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 20 Sep 2023 12:56:37 +0400 Subject: [PATCH] Contacts menu script: do not load real icons (slow) --- main/contacts-menu.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main/contacts-menu.lua b/main/contacts-menu.lua index 93d72b1..e8cf773 100644 --- a/main/contacts-menu.lua +++ b/main/contacts-menu.lua @@ -28,8 +28,12 @@ function on_drawer_open() names = map(contacts, function(it) return it.name 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 function on_icons_ready(icons)