remove old imperial preference

This commit is contained in:
MM20
2025-11-29 20:50:47 +01:00
parent 8094843972
commit 774f5411d5
5 changed files with 0 additions and 18 deletions

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="default_imperialUnits">false</bool>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="default_imperialUnits">true</bool>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="default_imperialUnits">false</bool>
</resources>

View File

@@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="default_imperialUnits">false</bool>
</resources>

View File

@@ -162,7 +162,6 @@ data class LauncherSettingsData internal constructor(
val weatherLastLocation: LatLon? = null,
val weatherLastUpdate: Long = 0L,
val weatherProviderSettings: Map<String, ProviderSettings> = emptyMap(),
val weatherImperialUnits: Boolean = false,
@Deprecated("Use locationSearchProviders instead")
val locationSearchEnabled: Boolean = false,
@@ -202,7 +201,6 @@ data class LauncherSettingsData internal constructor(
constructor(
context: Context,
) : this(
weatherImperialUnits = context.resources.getBoolean(R.bool.default_imperialUnits),
locationSearchImperialUnits = context.resources.getBoolean(R.bool.default_imperialUnits),
gridColumnCount = context.resources.getInteger(R.integer.config_columnCount),
)