Update sensor settings to include current value in the summary.

This commit is contained in:
Jimmy Shih
2012-09-25 10:34:04 -07:00
parent df7c832b96
commit 40c5d14eb4
9 changed files with 139 additions and 93 deletions
@@ -93,9 +93,8 @@ public class SensorManagerFactory {
* @param context the context
*/
private static SensorManager getSensorManager(Context context, boolean sendPageViews) {
String sensorTypeValueNone = context.getString(R.string.sensor_type_value_none);
String sensorType = PreferencesUtils.getString(
context, R.string.sensor_type_key, sensorTypeValueNone);
context, R.string.sensor_type_key, PreferencesUtils.SENSOR_TYPE_DEFAULT);
if (sensorType.equals(context.getString(R.string.sensor_type_value_ant))) {
if (sendPageViews) {