Skip to content

Commit

Permalink
Update ktor & add default value to slider setting
Browse files Browse the repository at this point in the history
  • Loading branch information
LuftVerbot committed Sep 21, 2024
1 parent 5477b3f commit ce01bce
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import androidx.media3.datasource.DataSpec
import dev.brahmkshatriya.echo.common.models.Streamable
import io.ktor.utils.io.ByteReadChannel
import io.ktor.utils.io.cancel
import io.ktor.utils.io.discard
import io.ktor.utils.io.readAvailable
import kotlinx.coroutines.runBlocking
import java.io.IOException

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class ExtensionFragment : BaseSettingsFragment() {
it.title = this.title
it.key = this.key
it.summary = this.summary
it.setDefaultValue(this.defaultValue)

it.isIconSpaceReserved = false
preferenceGroup.addPreference(it)
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kotlin {

dependencies {
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
api("io.ktor:ktor-utils:2.3.0")
api("io.ktor:ktor-utils:3.0.0-beta-2")
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ data class SettingSlider (
override val title: String,
override val key: String,
val summary: String? = null,
val defaultValue: Int? = null,
val from: Int,
val to: Int,
val steps: Int? = null
Expand Down

0 comments on commit ce01bce

Please sign in to comment.