From 70880a7f2951b8372841726cc2f3d7abd87f0ab5 Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Tue, 21 Sep 2010 15:04:27 -0700 Subject: [PATCH] DO NOT MERGE disallow longpress in WebView * This gets very confused by the new text copy logic * Downside is that copy from received message does not work at all (it didn't work anyway). * Will fix in next release by redesigning MessageView layout and no longer wrapping in ScrollView Bug: 2998892 Change-Id: Icd1219f3c45fd4da9259499e9c8a31ed0d3c4c30 --- src/com/android/email/activity/MessageCompose.java | 1 + src/com/android/email/activity/MessageView.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java index 17bc60777..c5b6d15d0 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -557,6 +557,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus mQuotedTextBar.setVisibility(View.GONE); mQuotedText.setVisibility(View.GONE); + mQuotedText.setLongClickable(false); // Conflicts with ScrollView, unfortunately mQuotedTextDelete.setOnClickListener(this); EmailAddressValidator addressValidator = new EmailAddressValidator(); diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index 706b2ab91..959ba164e 100644 --- a/src/com/android/email/activity/MessageView.java +++ b/src/com/android/email/activity/MessageView.java @@ -386,6 +386,7 @@ public class MessageView extends Activity implements OnClickListener { mMeetingNo.setOnClickListener(this); findViewById(R.id.invite_link).setOnClickListener(this); + mMessageContentView.setLongClickable(false); // Conflicts with ScrollView, unfortunately mMessageContentView.setVerticalScrollBarEnabled(false); mMessageContentView.getSettings().setBlockNetworkLoads(true); mMessageContentView.getSettings().setSupportZoom(false);