When i start my app in companion, it throws an error on my computer:
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 1 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.get(ArrayList.java:434) at com.sunny.CustomWebView.CustomWebView.getIndex(Unknown Source:26) at com.sunny.CustomWebView.CustomWebView.access$200(Unknown Source:0) at com.sunny.CustomWebView.CustomWebView$ChromeClient.onProgressChanged(Unknown Source:4) at WV.J80.d(chromium-TrichromeWebViewGoogle6432.aab-beta-720401443:19) at WV.F7.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-beta-720401443:242) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:257) at android.os.Looper.loop(Looper.java:342) at android.app.ActivityThread.main(ActivityThread.java:9634) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Note: You will not see another error reported for 5 seconds.
and after that the app stopped responding popup pops up and i click wait for app to respond, the popup appears again and all buttons do not work. Here is the code:
(those blocks at the bottom is unfinished code, just ignore them)