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

Commit

Permalink
Fill chatBox on click of content TextView
Browse files Browse the repository at this point in the history
  • Loading branch information
kunall17 committed Apr 8, 2016
1 parent c1d815a commit 184016b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions app/src/main/java/com/zulip/android/MessageAdapter.java
Expand Up @@ -149,17 +149,7 @@ public void onClick(View v) {
contentView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
FragmentManager fm = context.getSupportFragmentManager();
ComposeDialog dialog;
if (message.getType() == MessageType.STREAM_MESSAGE) {
dialog = ComposeDialog.newInstance(message.getType(),
message.getStream().getName(),
message.getSubject(), null);
} else {
dialog = ComposeDialog.newInstance(message.getType(), null,
null, message.getReplyTo(context.app));
}
dialog.show(fm, "fragment_compose");
((NarrowListener) getContext()).onNarrowFillSendBox(message);
}
});

Expand Down

0 comments on commit 184016b

Please sign in to comment.