Describe the bug
Multiple instances of login activity are created (even when one is present in the back stack).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
There should be only one instance of the login page.
Additional context
Add any other context about the problem here.
This will create additional problems like when the user presses the back button from within the main activity he will be redirected to the login screen as opposed to exiting the app.
I'd like to work on this if it's valid
@epicadk I reproduced above bug and came up with the idea of including android:launchMode="singleTask" tag in manifest file for LoginActivity . Works fine for back button and navigation scenarios.
Any thoughts on this ?
@epicadk I reproduced above bug and came up with the idea of including android:launchMode="singleTask" tag in manifest file for LoginActivity . Works fine for back button and navigation scenarios.
Any thoughts on this ?
Not what I had in mind but yeah that also works.
@epicadk what was your approach? let's compare both and the better one could be implemented
Assigning you @Sonali-Sharma-1
Happy coding !
Most helpful comment
Assigning you @Sonali-Sharma-1
Happy coding !