Play/Pause notification updation.

This commit is contained in:
Swapnil Tripathi 2021-08-15 01:41:01 +05:30 committed by Tobias Fella
parent 7e934fda0d
commit 40cddbc8a5
2 changed files with 5 additions and 2 deletions

View File

@ -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"/>

View File

@ -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();