mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Fixed ANRs
This commit is contained in:
@@ -109,6 +109,8 @@ import androidx.lifecycle.LifecycleService;
|
||||
import androidx.lifecycle.Observer;
|
||||
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
||||
|
||||
import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
|
||||
|
||||
public class ServiceSynchronize extends LifecycleService {
|
||||
private final Object lock = new Object();
|
||||
private ServiceManager serviceManager = new ServiceManager();
|
||||
@@ -1451,6 +1453,7 @@ public class ServiceSynchronize extends LifecycleService {
|
||||
}
|
||||
}
|
||||
}, "sync.main");
|
||||
main.setPriority(THREAD_PRIORITY_BACKGROUND); // will be inherited
|
||||
main.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user