avoid weird npe. fixed #991

This commit is contained in:
iNPUTmice 2015-02-18 13:11:41 +01:00
parent a8ec36cda8
commit da2bc6db23

View file

@ -321,8 +321,10 @@ public class ConversationFragment extends Fragment {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (activity != null) {
activity.hideConversationsOverview(); activity.hideConversationsOverview();
} }
}
}); });
mEditMessage.setOnEditorActionListener(mEditorActionListener); mEditMessage.setOnEditorActionListener(mEditorActionListener);
mEditMessage.setOnEnterPressedListener(new OnEnterPressed() { mEditMessage.setOnEnterPressedListener(new OnEnterPressed() {