fix issue with foreground service on Oreo+ (#1203)

This commit is contained in:
Konrad Pozniak 2019-04-21 14:28:51 +02:00 committed by GitHub
parent 1f3cd18b75
commit 1b9e279064
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -956,7 +956,11 @@ public final class ComposeActivity
getIntent().getStringExtra(SAVED_JSON_URLS_EXTRA),
accountManager.getActiveAccount(), savedTootUid);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
startForegroundService(sendIntent);
} else {
startService(sendIntent);
}
finishWithoutSlideOutAnimation();