// Initialize location sevice.
mLocationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
- readPreference();
+ mRecordLocation = RecordLocationPreference.get(
+ mPreferences, getContentResolver());
if (mRecordLocation) startReceivingLocationUpdates();
keepMediaProviderInstance();
mOrientationListener.enable();
// Start location update if needed.
- readPreference();
+ mRecordLocation = RecordLocationPreference.get(
+ mPreferences, getContentResolver());
if (mRecordLocation) startReceivingLocationUpdates();
installIntentFilter();
}
}
- private void readPreference() {
- mRecordLocation = RecordLocationPreference.get(
- mPreferences, getContentResolver());
- mFocusMode = mPreferences.getString(
- CameraSettings.KEY_FOCUS_MODE,
- getString(R.string.pref_camera_focusmode_default));
- }
-
@Override
public void onResume() {
super.onResume();