summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-18 13:53:01 +0100
committercyBerta <cyberta@riseup.net>2018-02-18 13:53:01 +0100
commit7375bc9e5e54ad9d6632eb112ed8129ed9f6ec49 (patch)
tree71d4101c17ea065aa20b692ecf19c542229fec5e /app/src/main/java/se
parent9a9030346fcb86cd25cb7ad97362af61e18e8af9 (diff)
#8852 pass provider to signup method as parameter
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java5
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);