Update view on sensor list change

This commit is contained in:
Chet Henry
2014-12-04 14:16:22 -07:00
parent c63104f612
commit 3764b0b7ca

View File

@@ -72,9 +72,8 @@ public class CurrentValuesAdapter extends BaseAdapter {
keys[i] = Integer.parseInt(sensor); keys[i] = Integer.parseInt(sensor);
i++; i++;
} }
notifyDataSetChanged();
//context.layout.setAdapter(CurrentValuesAdapter.this); context.layout.setAdapter(CurrentValuesAdapter.this);
} else if (pkey == context.getString(R.string.PREF_TRACKING_IMPERIAL_UNITS)) { } else if (pkey == context.getString(R.string.PREF_TRACKING_IMPERIAL_UNITS)) {
imperial = sharedPreferences.getBoolean(pkey, false); imperial = sharedPreferences.getBoolean(pkey, false);