catch npe in setupIme method
This commit is contained in:
parent
bf64276fa7
commit
88cdd03f0f
|
@ -348,7 +348,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
}
|
||||
|
||||
public void setupIme() {
|
||||
if (activity.usingEnterKey() && activity.enterIsSend()) {
|
||||
if (activity == null) {
|
||||
return;
|
||||
} else if (activity.usingEnterKey() && activity.enterIsSend()) {
|
||||
mEditMessage.setInputType(mEditMessage.getInputType() & (~InputType.TYPE_TEXT_FLAG_MULTI_LINE));
|
||||
mEditMessage.setInputType(mEditMessage.getInputType() & (~InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE));
|
||||
} else if (activity.usingEnterKey()) {
|
||||
|
|
Loading…
Reference in a new issue