public void remove(String id) {
SharedPreferences.Editor editor = preferences.edit();
editor.remove(getFieldKey(id, ACTIVITY_ID));
editor.remove(getFieldKey(id, CONFIDENCE_ID));
editor.remove(getFieldKey(id, VERSION_CODE_ID));
<BUG>editor.commit();
}</BUG>
private String getFieldKey(String id, String field) {
return PREFIX_ID + "_" + id + "_" + field;
}

public void remove(String id) {
SharedPreferences.Editor editor = preferences.edit();
editor.remove(getFieldKey(id, ACTIVITY_ID));
editor.remove(getFieldKey(id, CONFIDENCE_ID));
editor.remove(getFieldKey(id, VERSION_CODE_ID));
editor.apply();
}
private String getFieldKey(String id, String field) {
return PREFIX_ID + "_" + id + "_" + field;
