After logging in with an account, the account switcher crashes Snapchat
Reproduction steps
Logging in with an account
Long press on the search button
See the crash
Logs
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1344)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:405)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
at android.app.Dialog.show(Dialog.java:352)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher$showManagementPopup$1.invoke(SourceFile:5)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher$showManagementPopup$1.invoke(SourceFile:1)
at me.rhunk.snapenhance.core.ModContext.runOnUiThread(Unknown Source:20)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher.showManagementPopup(Unknown Source:9)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher.access$showManagementPopup(Unknown Source:0)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher$onActivityCreate$1.invoke$lambda$0(Unknown Source:16)
at me.rhunk.snapenhance.core.features.impl.experiments.AccountSwitcher$onActivityCreate$1.a(Unknown Source:0)
at me.rhunk.snapenhance.core.features.impl.experiments.a.onLongClick(Unknown Source:2)
at android.view.View.performLongClickInternal(View.java:7622)
at android.view.View.performLongClick(View.java:7580)
at android.view.View.performLongClick(View.java:7598)
at android.view.View$CheckForLongPress.run(View.java:29434)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7924)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Snapchat Version
Any
SnapEnhance Version
2.x.x
Agreement
[X] This is not a bug regarding Snapchat+.
[X] I have provided a detailed description of the issue.
Description
After logging in with an account, the account switcher crashes Snapchat
Reproduction steps
Logs
Snapchat Version
Any
SnapEnhance Version
2.x.x
Agreement