Project Information
Repository:
https://github.com/AugustToko/ACG-PlayerProject Name: ACG-Player
The issue submitted on GitHub: https://github.com/AugustToko/ACG-Player/issues/84
My github link: https://github.com/darewealth
Describe the bug
I tried to change the app theme to dark and I still decide to change back to light and when I did the app crashed.
To Reproduce
Launch the app
Click on menu
Click on dark mode and change it like 3 times
See error
Expected behavior
I expect to use this function without an error
Screenshots
Smartphone
Device: [Gionee X1]
OS: [7.0]
Version [2.6.9.4]
Log
06-23 08:30:35.746 31183 31183 E AndroidRuntime: Process: top.geek_studio.chenlongcould.musicplayer.Common, PID: 31183
06-23 08:30:35.746 31183 31183 E AndroidRuntime: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@f9e9dfa is not valid; is your activity running?
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.view.ViewRootImpl.setView(ViewRootImpl.java:567)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:313)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3177)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2482)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4092)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread.-wrap15(ActivityThread.java)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5452)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
06-23 08:30:35.746 31183 31183 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```