|
|
@ -507,7 +507,7 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
|
|
|
|
|
|
|
|
|
|
|
|
recipientsPanel.setPanelChangeListener(new RecipientsPanelChangeListener());
|
|
|
|
recipientsPanel.setPanelChangeListener(new RecipientsPanelChangeListener());
|
|
|
|
sendButton.setOnClickListener(sendButtonListener);
|
|
|
|
sendButton.setOnClickListener(sendButtonListener);
|
|
|
|
sendButton.setEnabled(false);
|
|
|
|
sendButton.setEnabled(true);
|
|
|
|
addContactButton.setOnClickListener(new AddRecipientButtonListener());
|
|
|
|
addContactButton.setOnClickListener(new AddRecipientButtonListener());
|
|
|
|
composeText.setOnKeyListener(new ComposeKeyPressedListener());
|
|
|
|
composeText.setOnKeyListener(new ComposeKeyPressedListener());
|
|
|
|
composeText.addTextChangedListener(new OnTextChangedListener());
|
|
|
|
composeText.addTextChangedListener(new OnTextChangedListener());
|
|
|
@ -818,15 +818,15 @@ public class ConversationActivity extends PassphraseRequiredSherlockFragmentActi
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void afterTextChanged(Editable s) {
|
|
|
|
public void afterTextChanged(Editable s) {
|
|
|
|
calculateCharactersRemaining();
|
|
|
|
calculateCharactersRemaining();
|
|
|
|
if (s == null || s.length() == 0) {
|
|
|
|
// if (s == null || s.length() == 0) {
|
|
|
|
sendButton.setClickable(false);
|
|
|
|
// sendButton.setClickable(false);
|
|
|
|
sendButton.setEnabled(false);
|
|
|
|
// sendButton.setEnabled(false);
|
|
|
|
sendButton.setColorFilter(0x66FFFFFF);
|
|
|
|
// sendButton.setColorFilter(0x66FFFFFF);
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
sendButton.setClickable(true);
|
|
|
|
// sendButton.setClickable(true);
|
|
|
|
sendButton.setEnabled(true);
|
|
|
|
// sendButton.setEnabled(true);
|
|
|
|
sendButton.setColorFilter(null);
|
|
|
|
// sendButton.setColorFilter(null);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void beforeTextChanged(CharSequence s, int start, int count,int after) {}
|
|
|
|
public void beforeTextChanged(CharSequence s, int start, int count,int after) {}
|
|
|
|