High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): stop disabling androidx.startup initializers (#30559)
shenlongf11d8b6a5ad3
diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xmlindex 1b8d2a97fb..5f4de8284a 100644--- a/mobile/android/app/src/main/AndroidManifest.xml+++ b/mobile/android/app/src/main/AndroidManifest.xml@@ -152,12 +152,6 @@This is used by the Flutter tool togenerate GeneratedPluginRegistrant.java --><meta-data android:name="flutterEmbedding" android:value="2" />- <!-- Disables default WorkManager initialization to use our custom initialization -->- <provider- android:name="androidx.startup.InitializationProvider"- android:authorities="${applicationId}.androidx-startup"- tools:node="remove" />-<!-- Widgets --><receiverdiff --git a/mobile/android/app/src/main/kotlin/app/alextran/immich/ImmichApp.kt b/mobile/android/app/src/main/kotlin/app/alextran/immich/ImmichApp.ktindex 79d1148acb..65249ec901 100644--- a/mobile/android/app/src/main/kotlin/app/alextran/immich/ImmichApp.kt+++ b/mobile/android/app/src/main/kotlin/app/alextran/immich/ImmichApp.kt@@ -3,17 +3,12 @@ package app.alextran.immichimport android.app.Applicationimport android.os.Handlerimport android.os.Looper-import androidx.work.Configuration-import androidx.work.WorkManagerimport app.alextran.immich.background.BackgroundEngineLockimport app.alextran.immich.background.BackgroundWorkerApiImplclass ImmichApp : Application() {override fun onCreate() {super.onCreate()- val config = Configuration.Builder().build()- WorkManager.initialize(this, config)- // always start BackupWorker after WorkManager init; this fixes the following bug:// After the process is killed (by user or system), the first trigger (taking a new picture) is lost.// Thus, the BackupWorker is not started. If the system kills the process after each initialization// (because of low memory etc.), the backup is never performed.