fix issue with foreground service on Oreo+ (#1203)
This commit is contained in:
parent
1f3cd18b75
commit
1b9e279064
|
@ -956,7 +956,11 @@ public final class ComposeActivity
|
||||||
getIntent().getStringExtra(SAVED_JSON_URLS_EXTRA),
|
getIntent().getStringExtra(SAVED_JSON_URLS_EXTRA),
|
||||||
accountManager.getActiveAccount(), savedTootUid);
|
accountManager.getActiveAccount(), savedTootUid);
|
||||||
|
|
||||||
startService(sendIntent);
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
|
startForegroundService(sendIntent);
|
||||||
|
} else {
|
||||||
|
startService(sendIntent);
|
||||||
|
}
|
||||||
|
|
||||||
finishWithoutSlideOutAnimation();
|
finishWithoutSlideOutAnimation();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue