window leak in AccountListActivity
Reproduction Steps
- tap 'feed'
- tap 'EDIT ACCOUNTs'
- tap 'connect an account'
- rotate the screen
Stack Trace
E/WindowManager: android.view.WindowLeaked: Activity org.runnerup.view.AccountListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{527f1cb4 V.E..... R....... 0,0-729,192} that was originally added here
at android.view.ViewRootImpl.
Debug info
App Version = 2.0.3.0
Android Version = 4.4.4
maybe can be solved like this: https://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added
Which account did you try to add? Adding an account will start the auth activity, maybe outside the RU control.
There is no need to add an account. Just rotate the screen when the dialog exists.

After the rotation, the dialog will disappear and the stack trace above can be seen with logcat.
Found it Most of the working accounts do not have this popup but a oauth setup.
A similar problem can occur in for instance add manual activity too. Total about 40 occasions. The issue itself can be fixed, not sure if this introduces any other problems. Without anyone reviewing I will be hesitant to change this (and to add a global variable without any other reason seem like a direction in the wrong direction), it is a quite big change too to change everything.
This did not occur when orientation was always locked to portrait....
The solution seem to be to use DialogFragments instead. Quite some code to change - will also have to be changed in the android-x migration...
https://stackoverflow.com/questions/7557265/prevent-dialog-dismissal-on-screen-rotation-in-android
Yes, that's it.