mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-04 08:05:10 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
ccda9d468b | ||
|
c3d02adaa4 |
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.kde.kdeconnect_tp"
|
package="org.kde.kdeconnect_tp"
|
||||||
android:versionCode="11330"
|
android:versionCode="11340"
|
||||||
android:versionName="1.13.3">
|
android:versionName="1.13.4">
|
||||||
|
|
||||||
<supports-screens
|
<supports-screens
|
||||||
android:anyDensity="true"
|
android:anyDensity="true"
|
||||||
|
@@ -430,9 +430,12 @@ public class MprisMediaSession implements SharedPreferences.OnSharedPreferenceCh
|
|||||||
playbackActions |= PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
|
playbackActions |= PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
|
||||||
++numActions;
|
++numActions;
|
||||||
}
|
}
|
||||||
if (notificationPlayer.isSeekAllowed()) {
|
// Documentation says that this was added in Lollipop (21) but we had crashes on Marshmallow (23)
|
||||||
playbackActions |= PlaybackStateCompat.ACTION_SEEK_TO;
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
++numActions;
|
if (notificationPlayer.isSeekAllowed()) {
|
||||||
|
playbackActions |= PlaybackStateCompat.ACTION_SEEK_TO;
|
||||||
|
++numActions;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
playbackState.setActions(playbackActions);
|
playbackState.setActions(playbackActions);
|
||||||
mediaSession.setPlaybackState(playbackState.build());
|
mediaSession.setPlaybackState(playbackState.build());
|
||||||
|
Reference in New Issue
Block a user