summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrazorloves <razorloves@gmail.com>2019-08-15 23:06:46 -0500
committerqjohn <townex22@gmail.com>2019-08-21 12:26:21 +0700
commitcebd1536b301ef9b3bbaa9ef91224f9ca15a7881 (patch)
tree150d7eae2eb848d17cd813f85b43ba2a56fa9df9
parenta191b4a6c30db51d307699eb34df0f3423d3d9b9 (diff)
LineageParts: Update weather provider download urlHEADo8.1
Change deprecated play store url to our download portal. Change-Id: Ice0712c8176269e9c6450f0a18dd43504d2c501a
-rw-r--r--res/values/strings.xml3
-rw-r--r--src/org/lineageos/lineageparts/weather/WeatherServiceSettings.java11
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&amp;c=apps</string>
- <string name="weather_settings_play_store_http_url" translatable="false">http://play.google.com/store/search?q=lineageosweatherprovider&amp;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() {