Forwards should not have the option to remove quoted text
Removes the options when restoring from a draft
Change-Id: I3de364110d33be7f5f7b25b1a3f67bbb7824f8b4
diff --git a/src/com/android/mail/compose/ComposeActivity.java b/src/com/android/mail/compose/ComposeActivity.java
index d038a7b..e9cc835 100644
--- a/src/com/android/mail/compose/ComposeActivity.java
+++ b/src/com/android/mail/compose/ComposeActivity.java
@@ -824,7 +824,7 @@
mBodyView.setText(bodyText);
}
if (quotedTextIndex > -1 && quotedText != null) {
- mQuotedTextView.setQuotedTextFromDraft(quotedText);
+ mQuotedTextView.setQuotedTextFromDraft(quotedText, mForward);
}
}
diff --git a/src/com/android/mail/compose/QuotedTextView.java b/src/com/android/mail/compose/QuotedTextView.java
index 1966945..69c8296 100644
--- a/src/com/android/mail/compose/QuotedTextView.java
+++ b/src/com/android/mail/compose/QuotedTextView.java
@@ -294,10 +294,10 @@
allowRespondInline(true);
}
- public void setQuotedTextFromDraft(CharSequence htmlText) {
+ public void setQuotedTextFromDraft(CharSequence htmlText, boolean forward) {
setVisibility(View.VISIBLE);
setQuotedText(htmlText);
- allowQuotedText(true);
+ allowQuotedText(!forward);
// If there is quoted text, we always allow respond inline, since this
// may be a forward.
allowRespondInline(true);