Skip to content

Commit

Permalink
Merge pull request #653 from OpenSRP/fix-login-logout-exception
Browse files Browse the repository at this point in the history
Fix logout login exception
  • Loading branch information
ndegwamartin authored Sep 23, 2020
2 parents 1da0ccb + 55b8d06 commit eebb416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=2.1.3-SNAPSHOT
VERSION_NAME=2.1.4-SNAPSHOT
VERSION_CODE=1
GROUP=org.smartregister
POM_SETTING_DESCRIPTION=OpenSRP Client Core Application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ private void localLogin(WeakReference<BaseLoginContract.View> view, String userN
private void navigateToHomePage(String userName) {

getUserService().localLoginWith(userName);
getLoginView().goToHome(false);

if (mLoginPresenter != null) {
getLoginView().goToHome(false);
}

CoreLibrary.getInstance().initP2pLibrary(userName);

Expand Down Expand Up @@ -230,7 +233,7 @@ public BaseLoginContract.View getLoginView() {
}

public UserService getUserService() {
return mLoginPresenter.getOpenSRPContext().userService();
return CoreLibrary.getInstance().context().userService();
}

/**
Expand Down

0 comments on commit eebb416

Please sign in to comment.