From bef165084be3a86142e1286330cdddca9f22758f Mon Sep 17 00:00:00 2001 From: "Adam M. Szalkowski" Date: Mon, 8 Jan 2024 06:40:13 +0100 Subject: [PATCH] fix: do not reload packages per fragment --- .../java/de/szalkowski/activitylauncher/services/Bindings.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/de/szalkowski/activitylauncher/services/Bindings.kt b/app/src/main/java/de/szalkowski/activitylauncher/services/Bindings.kt index 8938d328..431e9a70 100644 --- a/app/src/main/java/de/szalkowski/activitylauncher/services/Bindings.kt +++ b/app/src/main/java/de/szalkowski/activitylauncher/services/Bindings.kt @@ -4,27 +4,32 @@ import dagger.Binds import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.android.components.ActivityComponent +import dagger.hilt.android.scopes.ActivityScoped import dagger.hilt.components.SingletonComponent import javax.inject.Singleton @Module @InstallIn(ActivityComponent::class) abstract class ServicesModule { + @ActivityScoped @Binds abstract fun bindActivityLauncherService( activityLauncherServiceImpl: ActivityLauncherServiceImpl ): ActivityLauncherService + @ActivityScoped @Binds abstract fun bindActivityListService( activityListServiceImpl: ActivityListServiceImpl ): ActivityListService + @ActivityScoped @Binds abstract fun bindPackageListService( packageListServiceImpl: PackageListServiceImpl ): PackageListService + @ActivityScoped @Binds abstract fun bindIconCreatorService( iconCreatorServiceImpl: IconCreatorServiceImpl