Skip to content

Commit

Permalink
Fixed error in Account Adding without AuthToken specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbruhn committed Dec 23, 2014
1 parent 531688d commit 6166b91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mobile/src/main/java/de/jhbruhn/moin/gui/SignInActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import de.jhbruhn.moin.data.Session;
import de.jhbruhn.moin.data.User;
import de.jhbruhn.moin.data.api.MoinService;
import de.jhbruhn.moin.data.auth.AccountGeneral;
import hugo.weaving.DebugLog;
import retrofit.Callback;
import retrofit.RetrofitError;
Expand Down Expand Up @@ -66,6 +67,11 @@ protected void onCreate(Bundle savedInstanceState) {
ButterKnife.inject(this);

mAuthTokenType = getIntent().getStringExtra(ARG_AUTH_TYPE);

if(mAuthTokenType == null) {
mAuthTokenType = AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS;
}

mAccountManager = AccountManager.get(this);
}

Expand Down

0 comments on commit 6166b91

Please sign in to comment.