mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-01 22:58:57 +01:00
Minor cleanup
This commit is contained in:
@@ -152,8 +152,8 @@ sealed class Image(
|
||||
}
|
||||
}
|
||||
|
||||
sealed class Location {
|
||||
data class Pictures private constructor(val relativePath: String) : Location() {
|
||||
sealed interface Location {
|
||||
data class Pictures private constructor(val relativePath: String) : Location {
|
||||
companion object {
|
||||
fun create(relativePath: String = ""): Pictures {
|
||||
return Pictures(relativePath)
|
||||
@@ -161,7 +161,7 @@ sealed class Location {
|
||||
}
|
||||
}
|
||||
|
||||
data object Cache : Location()
|
||||
data object Cache : Location
|
||||
|
||||
fun directory(context: Context): File {
|
||||
return when (this) {
|
||||
|
||||
Reference in New Issue
Block a user