|
|
@ -201,8 +201,13 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
if (isBackgroundService(this))
|
|
|
|
if (isBackgroundService(this))
|
|
|
|
stopForeground(true);
|
|
|
|
stopForeground(true);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
|
|
|
try {
|
|
|
|
getNotificationService(null, null));
|
|
|
|
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
|
|
|
|
|
|
|
getNotificationService(null, null));
|
|
|
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
stopSelf();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
isOptimizing = Boolean.FALSE.equals(Helper.isIgnoringOptimizations(this));
|
|
|
|
isOptimizing = Boolean.FALSE.equals(Helper.isIgnoringOptimizations(this));
|
|
|
|
|
|
|
|
|
|
|
|