AndroidIDEOfficial / AndroidIDE

AndroidIDE is an IDE for Android to develop full featured Android apps.
https://m.androidide.com
GNU General Public License v3.0
2.38k stars 312 forks source link

When we search in project then select any result #195

Closed ani1nonly closed 2 years ago

ani1nonly commented 2 years ago

AndroidIDE crash report Manufacturer: Xiaomi Device: RedmiK20Pro App version: 2.0.2-beta (202)

Stacktrace: java.lang.ArrayIndexOutOfBoundsException: length=128; index=-1 at io.github.rosemoe.sora.graphics.GraphicTextRow.measureText(GraphicTextRow.java:255) at io.github.rosemoe.sora.widget.layout.LineBreakLayout.getCharLayoutOffset(LineBreakLayout.java:168) at io.github.rosemoe.sora.widget.CursorBlink.run(CursorBlink.java:81) at android.os.Handler.handleCallback(Handler.java:914) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:224) at android.app.ActivityThread.main(ActivityThread.java:7560) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Wendors commented 2 years ago

AndroidIDE crash report Manufacturer: OPPO Device: CPH2021 App version: 2.0.2-beta (202)

Stacktrace: android.util.SuperNotCalledException: Activity {com.itsaky.androidide/com.itsaky.androidide.DesignerActivity} did not call through to super.onDestroy() at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5523) at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5564) at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2350) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:264) at android.app.ActivityThread.main(ActivityThread.java:8312) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

itsaky commented 2 years ago

Fixed in 2bc1838f764bbcee383326ab76c82fa3dbf7c441.