diff options
author | rsudev <rasch@munin-soft.de> | 2014-02-25 22:04:52 +0100 |
---|---|---|
committer | rsudev <rasch@munin-soft.de> | 2014-02-25 22:04:52 +0100 |
commit | e846ea35e5aef0ba9f780bc95d014fa121af747b (patch) | |
tree | 4d473aa20360d2e3a40d6904f37490dbf8fa19b0 /main | |
parent | 0552fa5a3be6996a14d6a6016a58b5a193522c3d (diff) | |
download | cgeo-e846ea35e5aef0ba9f780bc95d014fa121af747b.zip cgeo-e846ea35e5aef0ba9f780bc95d014fa121af747b.tar.gz cgeo-e846ea35e5aef0ba9f780bc95d014fa121af747b.tar.bz2 |
Fixes #3626, Can not authorize to oc.pl
- fixed my stupid bug sending the request twice :(
Diffstat (limited to 'main')
-rw-r--r-- | main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java b/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java index c86c3eb..a5a2383 100644 --- a/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java +++ b/main/src/cgeo/geocaching/network/OAuthAuthorizationActivity.java @@ -73,6 +73,7 @@ public abstract class OAuthAuthorizationActivity extends AbstractActivity { String errMsg = getErrAuthInitialize(); errMsg += msg.obj != null ? "\n" + msg.obj.toString() : ""; showToast(errMsg); + startButton.setText(getAuthStart()); } else { showToast(getErrAuthInitialize()); startButton.setText(getAuthStart()); @@ -173,7 +174,7 @@ public abstract class OAuthAuthorizationActivity extends AbstractActivity { final HttpResponse response = Network.getRequest(getUrlPrefix() + host + pathRequest, params); if (Network.isSuccess(response)) { - final String line = Network.getResponseData(Network.getRequest(getUrlPrefix() + host + pathRequest, params)); + final String line = Network.getResponseData(response); int status = STATUS_ERROR; if (StringUtils.isNotBlank(line)) { |