Report which sources have a newer file instead of a single flag, and show a Material badge at the top-end corner of each such dictionary's icon. The section icon carries the badge while the section is collapsed.
14 lines
429 B
Kotlin
14 lines
429 B
Kotlin
package com.example.research
|
|
|
|
import androidx.compose.runtime.Immutable
|
|
|
|
@Immutable
|
|
sealed interface DictionaryStatus {
|
|
data object Unknown : DictionaryStatus
|
|
data object Checking : DictionaryStatus
|
|
data object UpToDate : DictionaryStatus
|
|
data class NeedsUpdate(val sourceIds: Set<String>) : DictionaryStatus
|
|
data object Empty : DictionaryStatus
|
|
data class Error(val message: String) : DictionaryStatus
|
|
}
|