Avoid auth redirection when activity restarted#11818
Avoid auth redirection when activity restarted#11818surinder-tsys wants to merge 1 commit intomasterfrom
Conversation
|
@surinder-tsys Unfortunately, I'm not sure what problem this pull request is supposed to fix. Could you please clarify what behaviour you were expecting and what you were observing instead? |
|
@ZetaTom If user is on FirstRunActivity and if the activity gets restarted (pressing home screen and again opening app from Recents) that time it will redirects to AuthenticatorActivity, because enableAccountHandling flag check is not applied in onRestart function. |
6ecf8c6 to
c1be175
Compare
ZetaTom
left a comment
There was a problem hiding this comment.
I've since been able to construct a scenario where this function is called in the required context. Unfortunately, I can't see any obvious change in the behaviour of the app and haven't been able to reproduce the problem described.
Since enableAccountHandling is checked in other lifecycle related functions, such as onResume(), I can't see why it shouldn't also be checked in onRestart().
@surinder-tsys, could you check if this change is still up to date?
c1be175 to
9e007e9
Compare
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/11818.apk |
|
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
|
No longer required as this has been addressed in #13902. |

Steps to reproduce:
User should not be logged in