Skip to content

Commit

Permalink
AC-729 App Intro Slides are shown on second app run (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh-997 authored May 18, 2020
1 parent 8050c55 commit 8a84329
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.openmrs.mobile.R;
import org.openmrs.mobile.activities.community.contact.ContactUsActivity;
import org.openmrs.mobile.activities.dialog.CustomFragmentDialog;
import org.openmrs.mobile.activities.introduction.SplashActivity;
import org.openmrs.mobile.activities.login.LoginActivity;
import org.openmrs.mobile.activities.settings.SettingsActivity;
import org.openmrs.mobile.application.OpenMRS;
Expand Down Expand Up @@ -121,7 +122,7 @@ protected void onResume() {
setupLanguage();
invalidateOptionsMenu();
if (!(this instanceof LoginActivity) && !mAuthorizationManager.isUserLoggedIn()
&& !(this instanceof ContactUsActivity)) {
&& !(this instanceof ContactUsActivity) && !(this instanceof SplashActivity)) {
mAuthorizationManager.moveToLoginActivity();
}
registerReceiver(mPasswordChangedReceiver, mIntentFilter);
Expand Down

0 comments on commit 8a84329

Please sign in to comment.