Esempio n. 1
0
 @Override
 public void onClick(View widget) {
   if (hideUrlStyle) {
     // Do nothing
   } else {
     //            super.onClick(widget);
     int id = Integer.parseInt(getURL().split("://")[1]);
     widget.getContext().startActivity(Intents.openProfile(id, widget.getContext()));
   }
 }
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    if (item.getItemId() == R.id.editProfile) {
      startActivity(Intents.editMyName(getActivity()));
      return true;
    } else if (item.getItemId() == R.id.changePhoto) {
      startActivity(ViewAvatarActivity.viewAvatar(myUid(), getActivity()));
      return true;
    }

    return super.onOptionsItemSelected(item);
  }