diff options
author | cyBerta <cyberta@riseup.net> | 2018-02-18 13:53:01 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2018-02-18 13:53:01 +0100 |
commit | 7375bc9e5e54ad9d6632eb112ed8129ed9f6ec49 (patch) | |
tree | 71d4101c17ea065aa20b692ecf19c542229fec5e | |
parent | 9a9030346fcb86cd25cb7ad97362af61e18e8af9 (diff) |
#8852 pass provider to signup method as parameter
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java index 5aff1af1..fc370f81 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java @@ -163,7 +163,7 @@ public abstract class ProviderApiManagerBase { } break; case SIGN_UP: - result = tryToRegister(parameters); + result = tryToRegister(provider, parameters); if (result.getBoolean(BROADCAST_RESULT_KEY)) { sendToReceiverOrBroadcast(receiver, SUCCESSFUL_SIGNUP, result, provider); } else { @@ -254,12 +254,11 @@ public abstract class ProviderApiManagerBase { - private Bundle tryToRegister(Bundle task) { + private Bundle tryToRegister(Provider provider, Bundle task) { Bundle result = new Bundle(); String username = task.getString(CREDENTIALS_USERNAME); String password = task.getString(CREDENTIALS_PASSWORD); - Provider provider = task.getParcelable(PROVIDER_KEY); if(provider == null) { result.putBoolean(BROADCAST_RESULT_KEY, false); |