Skip to content

Commit

Permalink
Add an Unknown VolumeUiState (#2512)
Browse files Browse the repository at this point in the history
* Add an UNKNOWN VolumeUiState

* Update to Unknown instead of UNKNOWN

* Add visibility and return type
  • Loading branch information
laiyichin authored Feb 4, 2025
1 parent 2043339 commit e180207
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ public data class VolumeUiState(

public val isMin: Boolean
get() = current == min

public companion object {
public val Unknown: VolumeUiState = VolumeUiState(current = -1, max = -1, min = -1)
}
}

0 comments on commit e180207

Please sign in to comment.