set focusable=false instead of enabled=false for rooms w/o voice
This commit is contained in:
parent
5cac4397dd
commit
f2409ed95e
|
@ -904,9 +904,6 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
}
|
||||
|
||||
this.conversation = conversation;
|
||||
boolean canWrite = this.conversation.getMode() == Conversation.MODE_SINGLE || this.conversation.getMucOptions().participating();
|
||||
this.mEditMessage.setEnabled(canWrite);
|
||||
this.mSendButton.setEnabled(canWrite);
|
||||
this.mEditMessage.setKeyboardListener(null);
|
||||
this.mEditMessage.setText("");
|
||||
this.mEditMessage.append(this.conversation.getNextMessage());
|
||||
|
@ -1112,7 +1109,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
if (!activity.isConversationsOverviewVisable() || !activity.isConversationsOverviewHideable()) {
|
||||
activity.sendReadMarkerIfNecessary(conversation);
|
||||
}
|
||||
this.updateSendButton();
|
||||
updateSendButton();
|
||||
updateEditablity();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1229,6 +1227,14 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
return activity.getThemeResource(R.attr.ic_send_text_offline, R.drawable.ic_send_text_offline);
|
||||
}
|
||||
|
||||
private void updateEditablity() {
|
||||
boolean canWrite = this.conversation.getMode() == Conversation.MODE_SINGLE || this.conversation.getMucOptions().participating();
|
||||
this.mEditMessage.setFocusable(canWrite);
|
||||
this.mEditMessage.setFocusableInTouchMode(canWrite);
|
||||
this.mSendButton.setEnabled(canWrite);
|
||||
this.mEditMessage.setCursorVisible(canWrite);
|
||||
}
|
||||
|
||||
public void updateSendButton() {
|
||||
final Conversation c = this.conversation;
|
||||
final SendButtonAction action;
|
||||
|
|
Loading…
Reference in a new issue