Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
#6354 - boton foto de contactos funcion add
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmyjbv committed Jul 6, 2016
1 parent cd9ae9d commit 38d6c28
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@
/**
* Created by roy on 7/06/16.
*/
public class ProfileDialog extends FermatDialog implements View.OnClickListener {
public class ProfileDialog extends FermatDialog implements View.OnClickListener {

private ImageView profilePhoto;
private ImageView chatButton;
private TextView profileName;
String bodyName;
Bitmap image;
int BUTTON_TOUCH = 0;
public int TOUCH_CHAT = 1;


public ProfileDialog(Context activity, FermatSession referenceAppFermatSession, ResourceProviderManager resources) {
Expand All @@ -43,15 +46,21 @@ protected void onCreate(Bundle savedInstanceState) {

profileName = (TextView) this.findViewById(R.id.contact_name_dialog);
profilePhoto = (ImageView) this.findViewById(R.id.profile_image_dialog);
chatButton = (ImageView) this.findViewById(R.id.chatContactButton);
chatButton.setOnClickListener(this);

profileName.setText(bodyName);
profilePhoto.setImageBitmap(image);

}

@Override
public void onClick(View v) {
int i = v.getId();

if (i == R.id.chatContactButton) {
setButtonTouch(TOUCH_CHAT);
dismiss();
}
}

@Override
Expand All @@ -63,4 +72,12 @@ protected int setLayoutId() {
protected int setWindowFeature() {
return Window.FEATURE_NO_TITLE;
}

private void setButtonTouch(int touch) {
BUTTON_TOUCH = touch;
}

public int getButtonTouch(){
return BUTTON_TOUCH;
}
}

0 comments on commit 38d6c28

Please sign in to comment.