mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 08:33:37 +02:00
Prevent crash
This commit is contained in:
@@ -753,8 +753,11 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
}
|
||||
|
||||
static void start(Context context) {
|
||||
ContextCompat.startForegroundService(context,
|
||||
new Intent(context, ServiceSend.class));
|
||||
try {
|
||||
ContextCompat.startForegroundService(context, new Intent(context, ServiceSend.class));
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
static void schedule(Context context, long delay) {
|
||||
|
||||
Reference in New Issue
Block a user