Bug: PublicAPI needs to call startForegroundService (SDK API26+).

Fixes #1301.
This commit is contained in:
Dennis Guse
2022-06-29 13:50:43 +02:00
parent f2ee99a477
commit 9f6ca83f27
7 changed files with 20 additions and 23 deletions
@@ -34,7 +34,7 @@ public abstract class AbstractAPIActivity extends AppCompatActivity {
if (PreferencesUtils.isPublicAPIenabled()) {
Log.i(TAG, "Received and trying to execute requested action.");
new TrackRecordingServiceConnection(serviceConnectedCallback)
.startAndBind(this);
.startAndBind(this, true);
} else {
Toast.makeText(this, getString(R.string.settings_public_api_disabled_toast), Toast.LENGTH_LONG).show();
Log.w(TAG, "Public API is disabled; ignoring request.");