From e242578a49f54a9f46d0bd68de53c98d7dc460fb Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Mon, 27 Sep 2010 15:54:27 -0700 Subject: [PATCH] Make WebViews clickable DO NOT MERGE * Makes the side-scrollable again * Required after making them non-long-clickable Requires companion change in WebView, to allow touch events while clickable or long clickable (it had been requiring both) Bug: 3036477 Change-Id: I4cae46d047f825d2aab08d254287855b187e9207 --- 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 c5b6d15d0..063e63e52 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.setClickable(true); mQuotedText.setLongClickable(false); // Conflicts with ScrollView, unfortunately mQuotedTextDelete.setOnClickListener(this); diff --git a/src/com/android/email/activity/MessageView.java b/src/com/android/email/activity/MessageView.java index 482c742ca..4f4dfeca9 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.setClickable(true); mMessageContentView.setLongClickable(false); // Conflicts with ScrollView, unfortunately mMessageContentView.setVerticalScrollBarEnabled(false); mMessageContentView.getSettings().setBlockNetworkLoads(true);