-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash at showing progress dialog #48
Comments
Yes I have the same issue it happens when there is Screen rotation. I have spinning progress then rotate, and in the same time there should be success KProgressHUD ... .show() |
Maybe here: public KProgressHUD show() { Should be something like this val activity = (context as? Activity) } I tested outside as wrapper of hud.show() and it sometimes helps but not always as sometimes activity.window.decorView.isShown return true and as before detaching. |
I have modified KProgressHUD like this
and show() method
now it seems to fix my issue while rotating screen and calling show(), and also non-UI thread issues. If you have any ideas please write them here. |
I encountered the same issue |
try { i have no idea why huawei mobile always crash at show(), i have no way but to add this. |
android.view.WindowLeaked: Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{360ddfca V.ED.... R......D 0,0-108,108} that was originally added here
code:
The text was updated successfully, but these errors were encountered: