summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/location
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-08-16 23:01:54 -0700
committerAdnan Begovic <adnan@cyngn.com>2015-10-29 17:36:32 -0700
commitd2d9f45236308fc9f722bf897030d1aacfbc8be8 (patch)
tree6d835917d37bc80bbd3b7280a48a46c4fa87c3da /src/com/android/settings/location
parent061e9a1bbfbe202b57eef686268d3dd3c34d2c15 (diff)
downloadpackages_apps_Settings-d2d9f45236308fc9f722bf897030d1aacfbc8be8.zip
packages_apps_Settings-d2d9f45236308fc9f722bf897030d1aacfbc8be8.tar.gz
packages_apps_Settings-d2d9f45236308fc9f722bf897030d1aacfbc8be8.tar.bz2
settings: Move CMHW to CMSDK
* Update all references and API usage. Change-Id: If6bda2547bdd251ccf9a04ad0deac7f2fd51fa29
Diffstat (limited to 'src/com/android/settings/location')
-rw-r--r--src/com/android/settings/location/LocationSettings.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/settings/location/LocationSettings.java b/src/com/android/settings/location/LocationSettings.java
index d3f0ac8..f4a1c9b 100644
--- a/src/com/android/settings/location/LocationSettings.java
+++ b/src/com/android/settings/location/LocationSettings.java
@@ -17,7 +17,7 @@
package com.android.settings.location;
-import static android.hardware.CmHardwareManager.FEATURE_LONG_TERM_ORBITS;
+import static cyanogenmod.hardware.CMHardwareManager.FEATURE_LONG_TERM_ORBITS;
import android.app.AlarmManager;
import android.app.PendingIntent;
@@ -27,7 +27,6 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
-import android.hardware.CmHardwareManager;
import android.location.SettingInjectorService;
import android.os.Bundle;
import android.os.UserHandle;
@@ -51,6 +50,8 @@ import com.android.settings.Utils;
import com.android.settings.cyanogenmod.LtoService;
import com.android.settings.widget.SwitchBar;
+import cyanogenmod.hardware.CMHardwareManager;
+
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
@@ -467,8 +468,7 @@ public class LocationSettings extends LocationSettingsBase
}
private static boolean isLtoSupported(Context context) {
- final CmHardwareManager hwManager =
- (CmHardwareManager) context.getSystemService(Context.CMHW_SERVICE);
- return hwManager != null && hwManager.isSupported(FEATURE_LONG_TERM_ORBITS);
+ final CMHardwareManager hardware = CMHardwareManager.getInstance(context);
+ return hardware != null && hardware.isSupported(FEATURE_LONG_TERM_ORBITS);
}
}