Replaced google weather url with yandex

This commit is contained in:
Dmitriy Shishkov 2023-03-24 10:50:32 +03:00
parent f25ce937ce
commit cadc881ad8

View File

@ -24,7 +24,11 @@ class WidgetClickListenerReceiver : BroadcastReceiver() {
}
} catch (e: Exception) {
e.printStackTrace()
val uri = Uri.parse("https://www.google.com/search?q=weather")
val uri = Uri.parse("https://yandex.ru/pogoda")
.buildUpon()
.appendQueryParameter("lat", Preferences.customLocationLat)
.appendQueryParameter("lon", Preferences.customLocationLon)
.build()
val i = Intent(Intent.ACTION_VIEW, uri)
i.flags = Intent.FLAG_ACTIVITY_NEW_TASK
try {