Add weather plugin language parameter
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package de.mm20.launcher2.plugin.config
|
||||
|
||||
data class WeatherPluginConfig(
|
||||
val supportsAutoLocation: Boolean,
|
||||
val supportsCustomLocation: Boolean,
|
||||
/**
|
||||
* Minimum time (in ms) that needs to pass before the provider can be queried again.
|
||||
* Note that updates can be triggered sooner if the user manually changes their location
|
||||
* or weather provider.
|
||||
*/
|
||||
val minUpdateInterval: Long = 60 * 60 * 1000L,
|
||||
)
|
||||
@@ -11,6 +11,7 @@ object WeatherPluginContract {
|
||||
const val Lon = "lon"
|
||||
const val Id = "id"
|
||||
const val LocationName = "location_name"
|
||||
const val Language = "lang"
|
||||
}
|
||||
|
||||
object ForecastColumns {
|
||||
@@ -36,6 +37,7 @@ object WeatherPluginContract {
|
||||
|
||||
object LocationParams {
|
||||
const val Query = "query"
|
||||
const val Language = "lang"
|
||||
}
|
||||
|
||||
object LocationColumns {
|
||||
|
||||
Reference in New Issue
Block a user