Permalink
Browse files

Update src/com/android/mms/ui/ComposeMessageActivity.java

  • Loading branch information...
1 parent b473752 commit 2eb54fffb918acf0107b745f4f5102663810930f @SoonSooon committed May 23, 2012
Showing with 15 additions and 13 deletions.
  1. +15 −13 src/com/android/mms/ui/ComposeMessageActivity.java
View
28 src/com/android/mms/ui/ComposeMessageActivity.java
@@ -3337,22 +3337,24 @@ private void launchMultiplePhonePicker() {
}
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
- if (event != null) {
- // if shift key is down, then we want to insert the '\n' char in the TextView;
- // otherwise, the default action is to send the message.
+ int i;
+ if (event != null)
+ if ((event.getKeyCode() == 23) || (event.getKeyCode() == 66))
+ i = 0;
+ while (true) {
+ return i;
if (!event.isShiftPressed()) {
- if (isPreparedForSending()) {
- confirmSendMessageIfNeeded();
- }
- return true;
+ if (isPreparedForSending())
+ confirmSendMessageIfNeeded();
+ i = 1;
+ continue;
}
- return false;
+ i = 0;
+ continue;
+ if (isPreparedForSending())
+ confirmSendMessageIfNeeded();
+ i = 1;
}
-
- if (isPreparedForSending()) {
- confirmSendMessageIfNeeded();
- }
- return true;
}
private final TextWatcher mTextEditorWatcher = new TextWatcher() {

2 comments on commit 2eb54ff

@travp624

int i; cannot be return i; return "must be a boolean";

@SoonSooon
Owner

bad coding on my side , int & boolean weren't supposed to work together :P . anyway i edited Patch 3 and now it "should" compile just fine !
AND Thank you very much for your time :)

Please sign in to comment.