From ceae8865e5e8c95663af76de8cede8ace3519d4e Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Wed, 4 Mar 2026 18:27:07 -0500 Subject: [PATCH] SyncthingService: Make service sticky Otherwise, Android won't restart it if the process is killed. This also fixes the service not relaunching after the user taps the restart apps notification for post-OTA dexopt. Signed-off-by: Andrew Gunnerson --- .../java/com/chiller3/basicsync/syncthing/SyncthingService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/chiller3/basicsync/syncthing/SyncthingService.kt b/app/src/main/java/com/chiller3/basicsync/syncthing/SyncthingService.kt index cf7c85b..15ec0ec 100644 --- a/app/src/main/java/com/chiller3/basicsync/syncthing/SyncthingService.kt +++ b/app/src/main/java/com/chiller3/basicsync/syncthing/SyncthingService.kt @@ -300,7 +300,7 @@ class SyncthingService : Service(), SyncthingStatusReceiver, DeviceStateListener stateChanged() - return START_NOT_STICKY + return START_STICKY } override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {