java.lang.IndexOutOfBoundsException
----------------
App Version: 2.0.7_9
OS Version: 14_34
Vendor: Xiaomi
Model: 23049RAD8C
CPU ABI: [arm64-v8a, armeabi-v7a, armeabi]
----------------
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.remove(ArrayList.java:511)
at com.github.miwu.ui.favorite.EditFavoriteActivity$liveAdapter$2$3$3.invoke(SourceFile:3)
at com.github.miwu.ui.favorite.EditFavoriteActivity$liveAdapter$2$3$3.invoke(SourceFile:1)
at kndroidx.recycler.live.LiveAdapter$TouchCallback.onSwiped(SourceFile:18)
at androidx.core.app.ActivityCompat$1.run(SourceFile:91)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8759)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
日志如下