aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuis Vidal <lvidal@cyngn.com>2016-06-20 17:10:58 -0700
committerLuis Vidal <lvidal@cyngn.com>2016-06-20 17:10:58 -0700
commit932b0cc7b50f962e637a60aab1d0d82d2cf64e36 (patch)
tree5f1f671f13534e618049eb5a5e458ac5357d82dd /src
parent3e0e7fcbd0946de689fc5fec5a71f5fcdc0af815 (diff)
downloadandroid_packages_apps_LockClock-932b0cc7b50f962e637a60aab1d0d82d2cf64e36.tar.gz
android_packages_apps_LockClock-932b0cc7b50f962e637a60aab1d0d82d2cf64e36.tar.bz2
android_packages_apps_LockClock-932b0cc7b50f962e637a60aab1d0d82d2cf64e36.zip
Actually verifies if CM weather feature is available
Commit 67d9adc70b used the wrong constant which caused the weather menu to be always removed from the widget settings. Use the correct constant to check if the weather feature is available Change-Id: I389e32ddd9db40c4523baf4602436dee041c631c TICKET: CYNGNOS-3071
Diffstat (limited to 'src')
-rw-r--r--src/com/cyanogenmod/lockclock/weather/Utils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/cyanogenmod/lockclock/weather/Utils.java b/src/com/cyanogenmod/lockclock/weather/Utils.java
index 6c95867..602fdd9 100644
--- a/src/com/cyanogenmod/lockclock/weather/Utils.java
+++ b/src/com/cyanogenmod/lockclock/weather/Utils.java
@@ -191,7 +191,7 @@ public final class Utils {
public static boolean isWeatherServiceAvailable(Context context) {
if (!weatherServiceFeatureCached) {
weatherServiceAvailable = context.getPackageManager()
- .hasSystemFeature(CMContextConstants.CM_WEATHER_SERVICE);
+ .hasSystemFeature(CMContextConstants.Features.WEATHER_SERVICES);
weatherServiceFeatureCached = true;
}
return weatherServiceAvailable;