Commit 93cb08d
refactor(VoicesAdapter): fully migrate to ListAdapter removing custom list wrappers
- Removed legacy `updateList()`, `submitListSafely()`, `addItem()`, and `refreshCurrentItems()` methods from `VoicesAdapter.kt`.
- Updated caller usages in `ReplyActivity`, `VoicesFragment`, and `TeamsVoicesFragment` to directly call `ListAdapter.submitList()`.
- Updated `BaseVoicesFragment` to correctly utilize `notifyDataSetChanged()` for `refreshCurrentItems()` calls when reacting to Realm updates without list reallocation.
This change cleans up redundant list management following the transition of `VoicesAdapter` to extend Android's standard `ListAdapter`.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent e6c54f7 commit 93cb08d
5 files changed
Lines changed: 8 additions & 31 deletions
File tree
- app/src/main/java/org/ole/planet/myplanet
- base
- ui
- teams/voices
- voices
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
Lines changed: 1 addition & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 139 | | |
151 | 140 | | |
152 | 141 | | |
| |||
327 | 316 | | |
328 | 317 | | |
329 | 318 | | |
330 | | - | |
| 319 | + | |
331 | 320 | | |
332 | 321 | | |
333 | 322 | | |
| |||
426 | 415 | | |
427 | 416 | | |
428 | 417 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 418 | | |
434 | 419 | | |
435 | 420 | | |
436 | 421 | | |
437 | 422 | | |
438 | 423 | | |
439 | 424 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | 425 | | |
449 | 426 | | |
450 | 427 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
0 commit comments