Revert "More clear UI when you are muted in a MUC"
This reverts commit da3aa7e5f1
.
This commit is contained in:
parent
2a6b4857ca
commit
3004483405
1 changed files with 1 additions and 11 deletions
|
@ -4885,20 +4885,11 @@ public class ConversationFragment extends XmppFragment
|
|||
return connection == null ? -1 : connection.getFeatures().getMaxHttpUploadSize();
|
||||
}
|
||||
|
||||
private boolean canWrite() {
|
||||
return
|
||||
this.conversation.getMode() == Conversation.MODE_SINGLE
|
||||
|| this.conversation.getMucOptions().participating()
|
||||
|| this.conversation.getNextCounterpart() != null;
|
||||
}
|
||||
|
||||
private void updateEditablity() {
|
||||
boolean canWrite = canWrite();
|
||||
boolean canWrite = this.conversation.getMode() == Conversation.MODE_SINGLE || this.conversation.getMucOptions().participating() || this.conversation.getNextCounterpart() != null;
|
||||
this.binding.textinput.setFocusable(canWrite);
|
||||
this.binding.textinput.setFocusableInTouchMode(canWrite);
|
||||
this.binding.textSendButton.setEnabled(canWrite);
|
||||
this.binding.textSendButton.setVisibility(canWrite ? View.VISIBLE : View.GONE);
|
||||
// this.binding.requestVoice.setVisibility(canWrite ? View.GONE : View.VISIBLE);
|
||||
this.binding.textinput.setCursorVisible(canWrite);
|
||||
this.binding.textinput.setEnabled(canWrite);
|
||||
}
|
||||
|
@ -4941,7 +4932,6 @@ public class ConversationFragment extends XmppFragment
|
|||
} else {
|
||||
params.width = identiconWidth;
|
||||
}
|
||||
if (!canWrite()) params.width = 0;
|
||||
binding.threadIdenticonLayout.setLayoutParams(params);
|
||||
showRecordVoiceButton();
|
||||
updateSnackBar(conversation);
|
||||
|
|
Loading…
Add table
Reference in a new issue