コード例 #1
0
 @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);
 }
コード例 #2
0
 private void editHomesteadColour() {
   HomesteadItem tempHomestead =
       HomesteadManager.findHomesteadByInternalId(getContentResolver(), mParentId);
   int currentColour = tempHomestead.getColour();
   new ColorPickerDialog(PeopleBrowserActivity.this, mColourChangedListener, currentColour).show();
 }