Open saloniamatteo opened 6 months ago
Same issue.
I am unable to add many widgets but not getting a crash with all of them.
Adding these brings up the preview then settings but no widget is added
The home assistant widgets are the ones that are most disappointing to not be able to add. I use these to turn lights on and off and other things. Show stopper for me.
Samsung Galaxy A53 5G Android 14/One UI 6.0 Lawnchair 14 beta 2
After trying several widgets, I can narrow the issue to be custom widgets, as in custom theme and/or custom size.
Widgets that have a fixed size (that do not open a customization menu) will work 99% of the time.
Widgets that can be resized, but do not offer styling (e.g. light/dark mode, transparency, etc.) will work as well, most of the time.
Widgets that can be styled and resized, will never work, at least for me.
I had 6 Home Assistant widgets installed with Lawnchair 2, but adding any more was crashing Lawnchair.
I switched to Lawnchair 14 hoping things were better, but much worse.
Example 1: fixed size, non-styleable widget
Added without any issue, works properly:
Example 2: styleable widget
Customisation menu. Pressing the "Save" button causes a Lawnchair crash.
Another example: non-styleable widget, that can be resized:
Workaround is to set a different launcher as your default. After doing this, open Lawnchair and you can add the widget succesfully. Then set Lawnchair back as the default Launcher.
Describe the bug
Any attemp to add any widget results in a LawnChair crash, and no widget added.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
No crash, obviously, and a working widget.
Screenshots
https://github.com/LawnchairLauncher/lawnchair/assets/28765699/c3f92576-6319-4b52-8a35-6d0a3efa5c74
Device information
#774
Additional context
The main culprit seems to be
com.android.launcher3.CellLayout.getUnusedHorizontalSpace()
Here is the log: