Skip to content

Commit

Permalink
fix: do not reload packages per fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
butzist committed Feb 17, 2024
1 parent 7370b64 commit bef1650
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bef1650

Please sign in to comment.