Skip to content

Conversation

@KPAHAPK
Copy link

@KPAHAPK KPAHAPK commented Jun 13, 2024

No description provided.

Copy link
Contributor

@antonkazakov antonkazakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привет. Оставил комментарии



@Module(includes = [MainBindModule::class])
abstract class MainModule {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем тут класс? Сделай просто object и все, заинлайни

import dagger.Module

@Module
object FragmentReceiverModule {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А зачем этот модуль?

import dagger.Module

@Module
object FragmentProducerModule {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И этот

private val colorGenerator: ColorGenerator,
private val context: Context
) {
private val context: Context,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь будет утечка контекста тк андродовская ViewModel живет дольше чем активити. Убери суперкласс

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants