@Override public void colorChanged(int colour) { HomesteadItem editedHomestead = HomesteadManager.findHomesteadByInternalId(getContentResolver(), mParentId); editedHomestead.setColour(colour); HomesteadManager.updateHomestead(getContentResolver(), editedHomestead); UIUtilities.showToast(PeopleBrowserActivity.this, R.string.message_colour_changed); }
private void editHomesteadColour() { HomesteadItem tempHomestead = HomesteadManager.findHomesteadByInternalId(getContentResolver(), mParentId); int currentColour = tempHomestead.getColour(); new ColorPickerDialog(PeopleBrowserActivity.this, mColourChangedListener, currentColour).show(); }