kokoichi206 / rhythm_game

Android rhythm game
0 stars 0 forks source link

DeadDialog Test Failed #53

Closed kokoichi206 closed 3 years ago

kokoichi206 commented 3 years ago

Is your feature request related to a problem? Please describe. isDeadDialogUnCancelable Test Failed during this actions https://github.com/kokoichi206/rhythm_game/actions/runs/1182919563

Describe the solution you'd like reference https://android.tecc0.com/?p=65

kokoichi206 commented 3 years ago
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@c337b88 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:907)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
at android.app.Dialog.show(Dialog.java:342)
at io.kokoichi.sample.rhythmgame.GameView.lambda$showDialog$2$GameView(GameView.java:560)
at io.kokoichi.sample.rhythmgame.GameView$$ExternalSyntheticLambda2.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
kokoichi206 commented 3 years ago

at pressHome() function in testPauseButton()

androidx.test.espresso.PerformException: Error performing 'single click - At Coordinates: 1605, 75 and precision: 16, 16' on view 'is a root view.'.

We cannot use UiDevice at github actions ?