@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);
 }
  /**
   * Switch to an item's view when it is touched
   *
   * @param ownerId the PersonItem.INTERNAL_ID of the person whose media should be shown
   */
  private void onView(String ownerId) {
    PersonItem person = PersonManager.findPersonByInternalId(getContentResolver(), ownerId);
    Intent browseMediaIntent = new Intent(PeopleBrowserActivity.this, MediaBrowserActivity.class);
    browseMediaIntent.putExtra(getString(R.string.extra_parent_id), ownerId);

    // not really the best place to manage person re-locking, but never mind...
    if (!person.isLocked()) {
      if (person.lockExpired()) {
        person.setLockStatus(PersonItem.PERSON_LOCKED);
        PersonManager.updatePerson(getContentResolver(), person);
      } else {
        browseMediaIntent.putExtra(
            getString(R.string.extra_media_visibility), MediaItem.MEDIA_PRIVATE);
      }
    } else {
      UIUtilities.showToast(PeopleBrowserActivity.this, R.string.message_view_locked_person, true);
    }

    startActivityForResult(browseMediaIntent, R.id.intent_media_browser);
  }