Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit e9b4679

Browse files
jarredwitttanguyantoine
authored andcommitted
fix(java): Move stopForegroundService() to onStop event (#294)
1 parent f0355b7 commit e9b4679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/tanguyantoine/react/MusicControlEventEmitter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public void onPlay() {
3838
}
3939

4040
public void onPause() {
41-
stopForegroundService();
4241
sendEvent(context, "pause", null);
4342
}
4443

4544
public void onStop() {
45+
stopForegroundService();
4646
sendEvent(context, "stop", null);
4747
}
4848

0 commit comments

Comments
 (0)