Mentorship-android: Bug : Multiple instances of login activity

Created on 5 Nov 2020  路  5Comments  路  Source: anitab-org/mentorship-android

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:

  1. Go to Login activity
  2. Click on Sign up
  3. Scroll down to Login
  4. See error -- when back on the login page press the back button to see the error

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.

Coding Bug

Most helpful comment

Assigning you @Sonali-Sharma-1
Happy coding !

All 5 comments

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 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  5Comments

annabauza picture annabauza  路  8Comments

vaishnavi-29 picture vaishnavi-29  路  3Comments

mohak1283 picture mohak1283  路  9Comments

Kavya-24 picture Kavya-24  路  8Comments