summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/util/FlattrUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/danoeh/antennapod/util/FlattrUtils.java')
-rw-r--r--src/de/danoeh/antennapod/util/FlattrUtils.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/de/danoeh/antennapod/util/FlattrUtils.java b/src/de/danoeh/antennapod/util/FlattrUtils.java
index 0c16dbd7b..1c77b7fc4 100644
--- a/src/de/danoeh/antennapod/util/FlattrUtils.java
+++ b/src/de/danoeh/antennapod/util/FlattrUtils.java
@@ -23,7 +23,7 @@ import android.os.AsyncTask;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.Toast;
-import de.danoeh.antennapod.BuildConfig;
+import de.danoeh.antennapod.AppConfig;
import de.danoeh.antennapod.PodcastApp;
import de.danoeh.antennapod.activity.FlattrAuthActivity;
import de.danoeh.antennapod.asynctask.FlattrTokenFetcher;
@@ -64,15 +64,15 @@ public class FlattrUtils {
*/
private static AccessToken retrieveToken() {
if (cachedToken == null) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Retrieving access token");
+ if (AppConfig.DEBUG) Log.d(TAG, "Retrieving access token");
String token = PreferenceManager.getDefaultSharedPreferences(
PodcastApp.getInstance())
.getString(PREF_ACCESS_TOKEN, null);
if (token != null) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Found access token. Caching.");
+ if (AppConfig.DEBUG) Log.d(TAG, "Found access token. Caching.");
cachedToken = new AccessToken(token);
} else {
- if (BuildConfig.DEBUG) Log.d(TAG, "No access token found");
+ if (AppConfig.DEBUG) Log.d(TAG, "No access token found");
return null;
}
}
@@ -87,7 +87,7 @@ public class FlattrUtils {
/** Stores the token as a preference */
public static void storeToken(AccessToken token) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Storing token");
+ if (AppConfig.DEBUG) Log.d(TAG, "Storing token");
SharedPreferences.Editor editor = PreferenceManager
.getDefaultSharedPreferences(PodcastApp.getInstance()).edit();
if (token != null) {
@@ -100,7 +100,7 @@ public class FlattrUtils {
}
public static void deleteToken() {
- if (BuildConfig.DEBUG) Log.d(TAG, "Deleting flattr token");
+ if (AppConfig.DEBUG) Log.d(TAG, "Deleting flattr token");
storeToken(null);
}
@@ -133,7 +133,7 @@ public class FlattrUtils {
}
public static void revokeAccessToken(Context context) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Revoking access token");
+ if (AppConfig.DEBUG) Log.d(TAG, "Revoking access token");
deleteToken();
FlattrServiceCreator.deleteFlattrService();
showRevokeDialog(context);
@@ -156,7 +156,7 @@ public class FlattrUtils {
}
public static void showNoTokenDialog(final Context context, final String url) {
- if (BuildConfig.DEBUG) Log.d(TAG, "Creating showNoTokenDialog");
+ if (AppConfig.DEBUG) Log.d(TAG, "Creating showNoTokenDialog");
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.no_flattr_token_title);
builder.setMessage(R.string.no_flattr_token_msg);