Commit 1fc2b81
committed
refactor: fetch discovery platform from tweaks in HomeViewModel
- Update repository loading logic to retrieve the discovery platform preference from `tweaksRepository` instead of relying solely on the UI state.
- Use `async`/`await` to fetch the platform preference from the repository concurrently during the loading process.
- Ensure the discovery platform is persisted via `tweaksRepository` when a new platform is explicitly selected.
- Add necessary import for `kotlinx.coroutines.async`.1 parent d51eaa1 commit 1fc2b81
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
- feature/home/presentation/src/commonMain/kotlin/zed/rainxch/home/presentation
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
0 commit comments