Revert "Yield foreground service start"

This reverts commit 5fb34691ac.
pull/214/head
M66B 12 months ago
parent 9db9d1cd0b
commit 0059e7c641

@ -199,7 +199,6 @@ public class Helper {
static final int AUTH_AUTOLOCK_GRACE = 15; // seconds
static final int PIN_FAILURE_DELAY = 3; // seconds
static final long PIN_FAILURE_DELAY_MAX = 20 * 60 * 1000L; // milliseconds
static final long FOREGROUND_SERVICE_YIELD = 200L;
static final String PGP_OPENKEYCHAIN_PACKAGE = "org.sufficientlysecure.keychain";
static final String PGP_BEGIN_MESSAGE = "-----BEGIN PGP MESSAGE-----";

@ -1001,7 +1001,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
static void start(Context context) {
try {
ContextCompat.startForegroundService(context, new Intent(context, ServiceSend.class));
Thread.sleep(Helper.FOREGROUND_SERVICE_YIELD);
} catch (Throwable ex) {
Log.e(ex);
}

@ -3493,7 +3493,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
context.startService(intent);
else
ContextCompat.startForegroundService(context, intent);
Thread.sleep(Helper.FOREGROUND_SERVICE_YIELD);
} catch (Throwable ex) {
Log.e(ex);
}

Loading…
Cancel
Save