diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-16 23:04:45 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-16 23:04:45 +0100 |
commit | 322e445c96c1534ea9cc9d04f57aa0d9ac655ce1 (patch) | |
tree | 9a2f1faea2628537c0d7c9f3202ba7daaa0d31ac /app | |
parent | 71468395b51ad92af5ba1eef97be0ab479c3345b (diff) | |
download | AntennaPod-322e445c96c1534ea9cc9d04f57aa0d9ac655ce1.zip |
Show "Install plugin" dialog if speed cannot be changed
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index 75100e717..1778bffb1 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -707,7 +707,10 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O if(butPlaybackSpeed != null) { butPlaybackSpeed.setOnClickListener(v -> { - if (controller != null && controller.canSetPlaybackSpeed()) { + if (controller == null) { + return; + } + if (controller.canSetPlaybackSpeed()) { String[] availableSpeeds = UserPreferences.getPlaybackSpeedArray(); String currentSpeed = UserPreferences.getPlaybackSpeed(); @@ -733,6 +736,8 @@ public abstract class MediaplayerActivity extends AppCompatActivity implements O } UserPreferences.setPlaybackSpeed(newSpeed); controller.setPlaybackSpeed(Float.parseFloat(newSpeed)); + } else { + VariableSpeedDialog.showDialog(this); } }); butPlaybackSpeed.setOnLongClickListener(v -> { |