Page 1 of 1

Unified selection for apps AND widgets

Posted: Sun Apr 07, 2019 7:38 pm
by dew
Currently when adding a widget the displayed list is loaded every time I tap [+] to add a widget.
There is no search box and the loading time is enormous for my 700+ apps / widgets.

The app selection on the other hand caches apps nicely, allows me to search and zoom, offers custom rearranging of favorites etc. and has everything I like the widget selection dialog to have, too.

Could you eventually combine the two selections to use the same kind of dialog so that selecting widgets has the same convenience as selecting an app? So that searching, zooming, caching, ... for widgets becomes possible and speedy.

Thanks :D

Re: Unified selection for apps AND widgets

Posted: Sun Apr 07, 2019 10:05 pm
by TrianguloY
700...what? Wow, you sure have a lot of apps :shock:

It's interesting you talk about the list of apps as a ...list. You aren't using the MyDrawer I guess.
You are right, the app drawer is a cached list of the installed apps (wich sometimes can lead to some issues, but being faster is something good! ). Perhaps the widget list can be cached too...Pierre?

Re: Unified selection for apps AND widgets

Posted: Mon Apr 08, 2019 6:01 am
by Pierrot
It can be kept in memory but there's no way to know something changed. Keeping the list up to date is an issue because keeping track of modified is currently another issue.

Re: Unified selection for apps AND widgets

Posted: Mon Apr 08, 2019 6:49 am
by TrianguloY
Perhaps in this case a temporal cache is enough.
Maybe...5 minutes since the last open? The idea is to speed up when you want to add multiple widgets, normally in this case you open the widget list multiple times in a short time.
And while I was writing this...I think this is not possible currently but the ability to add multiple widgets at once is something that could be useful too...maybe.

Re: Unified selection for apps AND widgets

Posted: Mon Apr 08, 2019 10:35 am
by dew
Pierrot wrote:
Mon Apr 08, 2019 6:01 am
It can be kept in memory but there's no way to know something changed. Keeping the list up to date is an issue because keeping track of modified is currently another issue.
Maybe it should only be cached for as long as LL is the foreground app. When it looses and regains focus then you could flag the cache dirty and it needs to be reloaded when required. This would speed up adding multiple widgets one after the other using that cache.

Also a search function in the list of widgets would be nice because its annoying to scroll through it while I know the name of the app which widget I need. I believe using the same appraoch as for apps would be the best idea here UI-wise.