OpenLauncherTeam / openlauncher

Customizable and Open Source Launcher for Android
Apache License 2.0
1.41k stars 413 forks source link

Crash after changing icon pack #707

Open nazar-pc opened 1 year ago

nazar-pc commented 1 year ago

General Information

Description

It is sufficient to change icon pack to another one and most of the time (but not 100% of the time) it crashes when getting back to the home screen. After extra restart it works fine indefinitely.

Log

Stack trace:  
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.get(ArrayList.java:437)
    at com.benny.openlauncher.widget.Desktop.getCurrentPage(Desktop.java:319)
    at com.benny.openlauncher.widget.WidgetContainer.updateWidgetOption(WidgetContainer.java:128)
    at com.benny.openlauncher.viewutil.ItemViewFactory$2.run(ItemViewFactory.java:144)
    at android.os.Handler.handleCallback(Handler.java:942)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7879)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
gsantner commented 1 year ago

OpenLauncher is not in active development. But feel free to make a merge request to fix the issue. Thank you.