summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/proguard.cfg1
-rw-r--r--app/src/main/assets/licenses.xml6
-rw-r--r--app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java29
3 files changed, 3 insertions, 33 deletions
diff --git a/app/proguard.cfg b/app/proguard.cfg
index 707530cb6..2551988fd 100644
--- a/app/proguard.cfg
+++ b/app/proguard.cfg
@@ -9,7 +9,6 @@
-allowaccessmodification
-keepattributes *Annotation*
-#-injars libs/presto_client-0.8.5.jar
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
diff --git a/app/src/main/assets/licenses.xml b/app/src/main/assets/licenses.xml
index 9fefb2e2c..c69f692cf 100644
--- a/app/src/main/assets/licenses.xml
+++ b/app/src/main/assets/licenses.xml
@@ -79,12 +79,6 @@
license="Apache 2.0"
licenseText="LICENSE_APACHE-2.0.txt" />
<library
- name="Presto Client"
- author="aocate"
- website="http://www.aocate.com/presto/"
- license="Apache 2.0"
- licenseText="LICENSE_PRESTO.txt" />
- <library
name="RecyclerView-FlexibleDivider"
author="yqritc"
website="https://github.com/yqritc/RecyclerView-FlexibleDivider"
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java
index 512b75483..ef624ebe6 100644
--- a/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java
+++ b/app/src/main/java/de/danoeh/antennapod/dialog/VariableSpeedDialog.java
@@ -1,33 +1,21 @@
package de.danoeh.antennapod.dialog;
-import android.content.ActivityNotFoundException;
import android.content.Context;
-import android.content.Intent;
-import android.net.Uri;
import android.os.Build;
import androidx.appcompat.app.AlertDialog;
-import android.util.Log;
+import de.danoeh.antennapod.R;
+import de.danoeh.antennapod.core.preferences.UserPreferences;
import java.util.Arrays;
import java.util.List;
-import de.danoeh.antennapod.R;
-import de.danoeh.antennapod.core.preferences.UserPreferences;
-import de.danoeh.antennapod.core.util.IntentUtils;
-
public class VariableSpeedDialog {
- private static final String TAG = VariableSpeedDialog.class.getSimpleName();
-
- private static final Intent playStoreIntent = new Intent(Intent.ACTION_VIEW,
- Uri.parse("market://details?id=com.falconware.prestissimo"));
-
private VariableSpeedDialog() {
}
public static void showDialog(final Context context) {
- if (org.antennapod.audio.MediaPlayer.isPrestoLibraryInstalled(context)
- || UserPreferences.useSonic()
+ if (UserPreferences.useSonic()
|| UserPreferences.useExoplayer()
|| Build.VERSION.SDK_INT >= 23) {
showSpeedSelectorDialog(context);
@@ -44,23 +32,12 @@ public class VariableSpeedDialog {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.no_playback_plugin_title);
builder.setMessage(R.string.no_playback_plugin_or_sonic_msg);
-
builder.setPositiveButton(R.string.enable_sonic, (dialog, which) -> {
UserPreferences.enableSonic();
if (showSpeedSelector) {
showSpeedSelectorDialog(context);
}
});
- if (IntentUtils.isCallable(context.getApplicationContext(), playStoreIntent)) {
- builder.setNegativeButton(R.string.download_plugin_label, (dialog, which) -> {
- try {
- context.startActivity(playStoreIntent);
- } catch (ActivityNotFoundException e) {
- // this is usually thrown on an emulator if the Android market is not installed
- Log.e(TAG, Log.getStackTraceString(e));
- }
- });
- }
builder.setNeutralButton(R.string.close_label, null);
builder.show();
}