mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-02 21:04:10 +03:00
Add "stop playback" button to notification
This commit is contained in:
@@ -276,6 +276,7 @@ class RemotePlayerService : Service(), CoroutineScope {
|
||||
addAction(generateAction(R.drawable.ic_fast_forward_black_32dp, "Fast Forward", Constants.ACTION_FAST_FORWARD))
|
||||
}
|
||||
addAction(generateAction(R.drawable.ic_skip_next_black_32dp, "Next", Constants.ACTION_NEXT))
|
||||
addAction(generateAction(R.drawable.ic_stop_black_32dp, "Stop", Constants.ACTION_STOP))
|
||||
}.build()
|
||||
|
||||
// Post notification
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M6,6h12v12H6V6z" />
|
||||
</vector>
|
||||
Reference in New Issue
Block a user