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

Commit 74ef8468 authored by Ebru Kurnaz's avatar Ebru Kurnaz
Browse files

Notes QS Tile: Flag the notes tile viewmodel with QsNewTilesFuture

Test: Build
Bug: 357863750
Flag: com.android.systemui.notes_role_qs_tile
Change-Id: I7635767ac61e4223ac4f2289680d3b22c8e343ec
parent 9893f104
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