diff options
| -rw-r--r-- | res/values/strings.xml | 3 | ||||
| -rw-r--r-- | src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java | 11 |
2 files changed, 4 insertions, 10 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index 65a1249..08b1eed 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -564,8 +564,7 @@ <string name="weather_settings_button">Provider settings</string> <string name="weather_settings_activity_not_found">Unable to launch the settings menu of this provider</string> <string name="weather_settings_add_weather_provider">Add weather provider</string> - <string name="weather_settings_play_store_market_url" translatable="false">market://search?q=lineageosweatherprovider&c=apps</string> - <string name="weather_settings_play_store_http_url" translatable="false">http://play.google.com/store/search?q=lineageosweatherprovider&c=apps</string> + <string name="weather_settings_provider_url" translatable="false">https://download.lineageos.org/extras</string> <string name="weather_settings_general_settings_title">General</string> <string name="weather_settings_providers_title">Providers</string> <string name="weather_settings_temp_units_title">Temperature unit</string> diff --git a/src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java b/src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java index 58532e2..de32b9a 100644 --- a/src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java +++ b/src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The CyanogenMod Project + * Copyright (C) 2019 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -133,15 +134,9 @@ public class WeatherServiceSettings extends SettingsPreferenceFragment } private void launchGetWeatherProviders() { - try { - startActivity(new Intent(Intent.ACTION_VIEW, - Uri.parse(getString(R.string.weather_settings_play_store_market_url))) - .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); - } catch (ActivityNotFoundException e) { - startActivity(new Intent(Intent.ACTION_VIEW, - Uri.parse(getString(R.string.weather_settings_play_store_http_url))) + startActivity(new Intent(Intent.ACTION_VIEW, + Uri.parse(getString(R.string.weather_settings_provider_url))) .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); - } } private void unregisterPackageMonitor() { |
