From 7375bc9e5e54ad9d6632eb112ed8129ed9f6ec49 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 18 Feb 2018 13:53:01 +0100 Subject: #8852 pass provider to signup method as parameter --- app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java | 5 ++--- 1 file 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); -- cgit v1.2.3