Added link for flattr website of antennapod

This commit is contained in:
daniel oeh 2012-07-21 15:18:48 +02:00
parent 57b41eb18e
commit 605e6c2b61
2 changed files with 7 additions and 3 deletions

View File

@ -33,7 +33,11 @@ public class FlattrClickWorker extends AsyncTask<Void, Void, Void> {
protected void onNoAccessToken() {
Log.w(TAG, "No access token was available");
FlattrUtils.showNoTokenDialog(context, url);
if (url.equals(FlattrUtils.APP_URL)) {
FlattrUtils.showNoTokenDialog(context, FlattrUtils.APP_LINK);
} else {
FlattrUtils.showNoTokenDialog(context, url);
}
}
protected void onFlattrError() {
@ -89,4 +93,3 @@ public class FlattrClickWorker extends AsyncTask<Void, Void, Void> {
}
}

View File

@ -40,6 +40,8 @@ public class FlattrUtils {
/** Flattr URL for this app. */
public static final String APP_URL = "http://antennapod.com";
/** Human-readable flattr-page. */
public static final String APP_LINK = "https://flattr.com/thing/745609/";
public static final String APP_THING_ID = "745609";
@ -99,7 +101,6 @@ public class FlattrUtils {
FlattrService fs = FlattrServiceCreator.getService(retrieveToken());
try {
Thing thing = fs.getThing(Thing.withId(APP_THING_ID));
Log.i(TAG, "URL is " + thing.getUrl());
return thing;
} catch (FlattrException e) {
e.printStackTrace();