From 932b0cc7b50f962e637a60aab1d0d82d2cf64e36 Mon Sep 17 00:00:00 2001 From: Luis Vidal Date: Mon, 20 Jun 2016 17:10:58 -0700 Subject: 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 --- src/com/cyanogenmod/lockclock/weather/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3