mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-28 20:57:42 +00:00
Spotify doesn't support seeking, disable mpris seek buttons for it
This commit is contained in:
parent
6609ae665c
commit
0595662efc
@ -77,3 +77,4 @@
|
|||||||
<orderEntry type="library" exported="" name="mina-core-2.0.7" level="project" />
|
<orderEntry type="library" exported="" name="mina-core-2.0.7" level="project" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
|
@ -93,8 +93,12 @@ public class MprisActivity extends Activity {
|
|||||||
//Spotify doesn't support changing the volume yet...
|
//Spotify doesn't support changing the volume yet...
|
||||||
if (player.equals("Spotify")) {
|
if (player.equals("Spotify")) {
|
||||||
findViewById(R.id.volume_layout).setVisibility(View.INVISIBLE);
|
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 {
|
} else {
|
||||||
findViewById(R.id.volume_layout).setVisibility(View.VISIBLE);
|
findViewById(R.id.volume_layout).setVisibility(View.VISIBLE);
|
||||||
|
findViewById(R.id.rew_button).setVisibility(View.VISIBLE);
|
||||||
|
findViewById(R.id.ff_button).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user