Bugfix: PublicAPI stop should not start TrackRecordingService in foreground.

Actually, TrackRecordingService will only be start in foreground if needed.

Fixes #1824.
This commit is contained in:
Dennis Guse
2024-02-12 22:27:32 +01:00
parent 2ec2d2fd53
commit 35e6ca7528
5 changed files with 84 additions and 6 deletions
@@ -136,7 +136,7 @@ public class TrackStoppedActivity extends AbstractTrackDeleteActivity implements
}
private void resumeTrackAndFinish() {
TrackRecordingServiceConnection.execute(this, (service, connection) -> {
TrackRecordingServiceConnection.executeForeground(this, (service, connection) -> {
service.resumeTrack(trackId);
Intent newIntent = IntentUtils.newIntent(TrackStoppedActivity.this, TrackRecordingActivity.class)