Fix dictionary update flow and rebuild the search field on Material 3
Fixed the update card reappearing for a moment after tapping it: the tap re-ran the status check and republished NeedsUpdate before the download service reported Loading, so the card flashed back in that gap. Fixed the update card never returning after cancelling a download: both the Cancelled branch and cancelDownload() forced the status to UpToDate, and the card's tap is the only thing that re-evaluates it. The status is now re-derived on the Cancelled to Idle transition, once the partially downloaded archive - which carries today's date and would otherwise be read as a current dictionary - has been cleaned up. Fixed the download progress bar staying at 0% far too long: progress was published in 3-percentage-point buckets and then scaled by the download stage weight, so the bar only moved after about 7% of the archive had transferred. Rebuilt the search field on the Material 3 TextField instead of a hand-rolled BasicTextField inside a Surface, so it picks up the standard container, cursor and icon treatment. Dictionary entry titles in the search field, the results list and the article bar now share a dictionaryTitleLarge style that keeps the font padding, so their line height lines up with the Material 3 text field.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
- Fixed the dictionary update card after starting or cancelling a download
|
||||
- Fixed download progress staying at 0% for too long
|
||||
- Rebuilt the search field on Material 3 and aligned dictionary title typography
|
||||
@@ -0,0 +1,3 @@
|
||||
- Исправлена карточка обновления словаря после запуска и отмены загрузки
|
||||
- Исправлено зависание индикатора прогресса загрузки на 0%
|
||||
- Строка поиска переведена на Material 3; выровнена типографика заголовков словаря
|
||||
Reference in New Issue
Block a user