summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-09-05 19:46:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-09-05 19:46:52 -0700
commitf19ef48297645cc464e2d89cff7bfff23a7fbe6e (patch)
tree34ca2badfa3cf31d986f7f4d1f06debe89d42a21 /src
parenteae91d793a2d9b2fb4631879f44de0615a085c19 (diff)
parent56f72536efb4f9d0c35f79b87df69c3b8315de17 (diff)
downloadMms-f19ef48297645cc464e2d89cff7bfff23a7fbe6e.tar.gz
am 56f72536: am 253230d4: Merge "Mms: Two popups are displayed when Press Enter key on message screen."
* commit '56f72536efb4f9d0c35f79b87df69c3b8315de17': Mms: Two popups are displayed when Press Enter key on message screen.
Diffstat (limited to 'src')
-rw-r--r--src/com/android/mms/ui/ComposeMessageActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/mms/ui/ComposeMessageActivity.java b/src/com/android/mms/ui/ComposeMessageActivity.java
index 2e44ce02..a4495576 100644
--- a/src/com/android/mms/ui/ComposeMessageActivity.java
+++ b/src/com/android/mms/ui/ComposeMessageActivity.java
@@ -3250,7 +3250,7 @@ public class ComposeMessageActivity extends Activity
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.
- if (!event.isShiftPressed()) {
+ if (!event.isShiftPressed() && event.getAction() == KeyEvent.ACTION_DOWN) {
if (isPreparedForSending()) {
confirmSendMessageIfNeeded();
}