diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-22 16:48:18 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-22 16:48:18 +0200 |
commit | e5b37b463c273389e9c9a8568f71b02610a7a178 (patch) | |
tree | 82c74c9bb6cd45695bc68072beee4364477d9c7a /src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java | |
parent | ff6597167d130c57d44bbeb766e067d6ccbc1cb0 (diff) | |
download | AntennaPod-e5b37b463c273389e9c9a8568f71b02610a7a178.zip |
Bugfixes
Diffstat (limited to 'src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java')
-rw-r--r-- | src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java b/src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java index 61f7bfe08..d3c1d73c6 100644 --- a/src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java +++ b/src/de/danoeh/antennapod/asynctask/FlattrTokenFetcher.java @@ -34,7 +34,9 @@ public class FlattrTokenFetcher extends AsyncTask<Void, Void, AccessToken> { @Override protected void onPostExecute(AccessToken result) { - super.onPostExecute(result); + if (result != null) { + FlattrUtils.storeToken(result); + } dialog.dismiss(); if (exception == null) { FlattrAuthActivity instance = FlattrAuthActivity.getInstance(); @@ -73,7 +75,6 @@ public class FlattrTokenFetcher extends AsyncTask<Void, Void, AccessToken> { } if (token != null) { if (AppConfig.DEBUG) Log.d(TAG, "Successfully got token"); - FlattrUtils.storeToken(token); return token; } else { Log.w(TAG, "Flattr token was null"); |