mirror of
https://github.com/KDE/kasts.git
synced 2025-01-27 23:59:33 +01:00
Play/Pause notification updation.
This commit is contained in:
parent
7e934fda0d
commit
40cddbc8a5
@ -7,7 +7,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.kde.kasts"
|
||||
android:versionName="0.0.1"
|
||||
android:versionCode="1628967125"
|
||||
android:versionCode="1628971416"
|
||||
android:installLocation="auto">
|
||||
|
||||
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
|
||||
|
@ -115,7 +115,10 @@ public class KastsActivity extends QtActivity
|
||||
.setContentText("some random text");
|
||||
|
||||
notification.addAction(aPrevious.build());
|
||||
notification.addAction(aPause.build());
|
||||
if(mediaData.state == 0)
|
||||
notification.addAction(aPause.build());
|
||||
else
|
||||
notification.addAction(aPlay.build());
|
||||
notification.addAction(aNext.build());
|
||||
mSession.setPlaybackState(mPBuilder.build());
|
||||
MediaStyle mediaStyle = new MediaStyle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user