Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed1405fe authored by Ebru Kurnaz's avatar Ebru Kurnaz Committed by Android (Google) Code Review
Browse files

Merge "Notes QS Tile: Flag the notes tile viewmodel with QsNewTilesFuture" into main

parents 9ae5f0c9 74ef8468
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ import com.android.systemui.qs.tiles.impl.notes.domain.model.NotesTileModel
import com.android.systemui.qs.tiles.viewmodel.QSTileConfig
import com.android.systemui.qs.tiles.viewmodel.QSTileUIConfig
import com.android.systemui.qs.tiles.viewmodel.QSTileViewModel
import com.android.systemui.qs.tiles.viewmodel.StubQSTileViewModel
import com.android.systemui.res.R
import dagger.Binds
import dagger.Module
@@ -106,12 +107,14 @@ interface NoteTaskModule {
            stateInteractor: NotesTileDataInteractor,
            userActionInteractor: NotesTileUserActionInteractor,
        ): QSTileViewModel =
            if (com.android.systemui.Flags.qsNewTilesFuture())
                factory.create(
                    TileSpec.create(NOTES_TILE_SPEC),
                    userActionInteractor,
                    stateInteractor,
                    mapper,
                )
            else StubQSTileViewModel

        @Provides
        @IntoMap