From 0595662efc3e542f85d9f97ca166e353beee38b2 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Wed, 30 Oct 2013 01:11:18 +0100 Subject: [PATCH] Spotify doesn't support seeking, disable mpris seek buttons for it --- kdeconnect-android.iml | 1 + .../org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/kdeconnect-android.iml b/kdeconnect-android.iml index 3c2c7554..95a2f085 100644 --- a/kdeconnect-android.iml +++ b/kdeconnect-android.iml @@ -77,3 +77,4 @@ + diff --git a/src/main/java/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java b/src/main/java/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java index 81fce878..391f521f 100644 --- a/src/main/java/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java +++ b/src/main/java/org/kde/kdeconnect/Plugins/MprisPlugin/MprisActivity.java @@ -93,8 +93,12 @@ public class MprisActivity extends Activity { //Spotify doesn't support changing the volume yet... if (player.equals("Spotify")) { findViewById(R.id.volume_layout).setVisibility(View.INVISIBLE); + findViewById(R.id.rew_button).setVisibility(View.GONE); + findViewById(R.id.ff_button).setVisibility(View.GONE); } else { findViewById(R.id.volume_layout).setVisibility(View.VISIBLE); + findViewById(R.id.rew_button).setVisibility(View.VISIBLE); + findViewById(R.id.ff_button).setVisibility(View.VISIBLE); } }