Neamar / KISS

Lightning fast, open-source, < 250kb Android launcher
https://kisslauncher.com/
GNU General Public License v3.0
2.97k stars 580 forks source link

Widgets / UI reload too often #1919

Open harshad1 opened 2 years ago

harshad1 commented 2 years ago

Describe the bug Once in a while (but far too often), kiss launcher will reload when returned to. The entire UI (shortcuts, search bar, widgets) will draw blank and then reload. This happens far more often than the stock launcher.

To Reproduce Use phone for a while.

Expected behavior Launcher does not reload

Additional information

Additional context I have a pixel 3 xl. It has 4 gb of ram, which should be enough to prevent issues like this.

kstefanini commented 2 years ago

Hi! Maybe Kiss app is too much "battery optimized" by android on your phone and get purged out of memory after some time. Try to reduce optimization level or even exclude Kiss of battery optimization.

darhma commented 2 years ago

I, on the other hand, have the opposite problem, sometimes I have to restart kiss to update widgets

harshad1 commented 2 years ago

@darhma

I believe there is bug somewhere in how KISS handles widget updates. It does not update when / as often as other launchers update their widgets.

I was unable to figure out where / how kiss behaves differently, but was able to update an app I contribute to (markor) to work around it. I think it has to do with how widgets are not refreshed after configuration / when reconfiguration is triggered (I think here)

I have not figured this out (and now that I have fixed it from markor, I don't have a huge incentive to dig in to this in kiss). If I do figure it out, I will create a PR.

harshad1 commented 2 years ago

exclude Kiss of battery optimization.

I have done this for now, and the issue seems improved (but not totally solved) thanks. Will continue to investigate.

darhma commented 2 years ago

@harshad1

Thanks for the reply, unfortunately I am not a developer so I have no idea how I can implement a solution similar to the one you found for markor. Anyway it is a not too annoying problem, eventually just restarting kiss will solve it.