diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 14ca2108..04aa41f7 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -956,7 +956,11 @@ public final class ComposeActivity getIntent().getStringExtra(SAVED_JSON_URLS_EXTRA), accountManager.getActiveAccount(), savedTootUid); - startService(sendIntent); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + startForegroundService(sendIntent); + } else { + startService(sendIntent); + } finishWithoutSlideOutAnimation();