~singpolyma/cheogram-android

bd1702ba45a545e5b7ea7130280a31e896e209eb — Stephen Paul Weber 1 year, 5 months ago ee698d5
Use startForegroundService directly

We already verified we are on a version that supports it.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/utils/Compatibility.java
M src/main/java/eu/siacs/conversations/utils/Compatibility.java => src/main/java/eu/siacs/conversations/utils/Compatibility.java +1 -1
@@ 159,7 159,7 @@ public class Compatibility {
        try {
            if (Compatibility.runsAndTargetsTwentySix(context)) {
                intent.putExtra(EXTRA_NEEDS_FOREGROUND_SERVICE, true);
                ContextCompat.startForegroundService(context, intent);
                context.startForegroundService(intent);
            } else {
                context.startService(intent);
            }