be4ceb26c96da2f0d03b1e339c331d68ff62f45c
This commit introduces a new `TaskViewModel` which retrieves task data using `GetTaskUseCase` and maps them to `TaskTileUiState`. It also adds new files `TaskTileUiState` and `GetTaskUseCase` with their corresponding models. - `TaskTileUiState` is used to represent the UI state of a single overview tile. - Introduced `TaskData` sealed interface to encapsulate different states of a task. - `GetTaskUseCase` is used to fetch a single task given an id from the repository. - `TaskViewModel` fetches and maps tasks to `TaskUiState`. - Added unit tests for `TaskViewModel` to ensure the correct data is being emitted. - Added unit tests for `GetTaskUseCaseTest` for testing task retrieval logic. - `TaskModel` is the new data model representing the data fetched by the repository. Fix: 390578940 Fix: 390578937 Bug: 388486032 Flag: com.android.launcher3.enable_refactor_task_thumbnail Test: GetTaskUseCaseTest Test: TaskViewModelTest Change-Id: Ibf728eccc31270c0d0d8668a503e26d6d0e88f59
Description
No description provided
Languages
Java
57.2%
Kotlin
42.4%
AIDL
0.3%