Added link for flattr website of antennapod
This commit is contained in:
parent
57b41eb18e
commit
605e6c2b61
|
@ -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> {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue