editor.putFloat(getFieldKey(id, LATITUDE_ID), (float) geofenceModel.getLatitude());
editor.putFloat(getFieldKey(id, LONGITUDE_ID), (float) geofenceModel.getLongitude());
editor.putFloat(getFieldKey(id, RADIUS_ID), geofenceModel.getRadius());
editor.putFloat(getFieldKey(id, TRANSITION_ID), geofenceModel.getTransition());
editor.putLong(getFieldKey(id, EXPIRATION_ID), geofenceModel.getExpiration());
<BUG>editor.commit();
}</BUG>
public GeofenceModel get(String id) {
if (preferences != null && preferences.contains(getFieldKey(id, LATITUDE_ID)) && preferences.contains(getFieldKey(id, LONGITUDE_ID))) {
GeofenceModel.Builder builder = new GeofenceModel.Builder(id);

editor.putFloat(getFieldKey(id, LATITUDE_ID), (float) geofenceModel.getLatitude());
editor.putFloat(getFieldKey(id, LONGITUDE_ID), (float) geofenceModel.getLongitude());
editor.putFloat(getFieldKey(id, RADIUS_ID), geofenceModel.getRadius());
editor.putFloat(getFieldKey(id, TRANSITION_ID), geofenceModel.getTransition());
editor.putLong(getFieldKey(id, EXPIRATION_ID), geofenceModel.getExpiration());
editor.apply();
}
public GeofenceModel get(String id) {
if (preferences != null && preferences.contains(getFieldKey(id, LATITUDE_ID)) && preferences.contains(getFieldKey(id, LONGITUDE_ID))) {
GeofenceModel.Builder builder = new GeofenceModel.Builder(id);
