Skip to content

Commit 312dffe

Browse files
committed
update data immediately after media key press
1 parent 927a581 commit 312dffe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repositories {
2222
}
2323
2424
dependencies {
25-
implementation 'com.github.LabyStudio:java-spotify-api:1.0.6:all'
25+
implementation 'com.github.LabyStudio:java-spotify-api:1.0.7:all'
2626
}
2727
```
2828

src/main/java/de/labystudio/spotifyapi/platform/windows/WinSpotifyAPI.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public void pressMediaKey(MediaKey mediaKey) {
163163
this.process.pressKey(WinApi.VK_MEDIA_PLAY_PAUSE);
164164
break;
165165
}
166+
167+
// Update state immediately
168+
this.onTick();
166169
}
167170

168171
@Override

0 commit comments

Comments
 (0)