Following this, the login activity itself still needs to be refactored, but this improves the process a bit.
No matter where you are in the app, if you extend the BaseActivity, then if the user becomes signed out in some way, the login will automatically be brought up.
When you start the app, you first go to the LauncherActivity, which either loads the MainActivity or the LoginActivity, depending on the firebase auth state.
Following this, the login activity itself still needs to be refactored, but this improves the process a bit.
No matter where you are in the app, if you extend the BaseActivity, then if the user becomes signed out in some way, the login will automatically be brought up.
When you start the app, you first go to the LauncherActivity, which either loads the MainActivity or the LoginActivity, depending on the firebase auth state.