mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
Lower default minimum signal quality
This commit is contained in:
@@ -2,9 +2,7 @@ package eu.darken.capod.profiles.core
|
||||
|
||||
import android.os.Parcelable
|
||||
import com.squareup.moshi.adapters.PolymorphicJsonAdapterFactory
|
||||
import eu.darken.capod.common.serialization.NameBasedPolyJsonAdapterFactory
|
||||
import eu.darken.capod.pods.core.PodDevice
|
||||
import kotlin.jvm.java
|
||||
|
||||
sealed interface DeviceProfile : Parcelable {
|
||||
val id: ProfileId
|
||||
@@ -15,7 +13,7 @@ sealed interface DeviceProfile : Parcelable {
|
||||
val address: String?
|
||||
|
||||
companion object {
|
||||
const val DEFAULT_MINIMUM_SIGNAL_QUALITY = 0.20f
|
||||
const val DEFAULT_MINIMUM_SIGNAL_QUALITY = 0.15f
|
||||
|
||||
val MOSHI_FACTORY = PolymorphicJsonAdapterFactory.of(DeviceProfile::class.java, "type")
|
||||
.withSubtype(AppleDeviceProfile::class.java, "apple")
|
||||
|
||||
Reference in New Issue
Block a user