private void respondInline() { // Copy the text in the quoted message to the body of the // message after stripping the html. final String plainText = Utils.convertHtmlToPlainText(getQuotedText().toString()); if (mRespondInlineListener != null) { mRespondInlineListener.onRespondInline("\n" + plainText); } // Set quoted text to unchecked and not visible. updateCheckedState(false); mRespondInlineButton.setVisibility(View.GONE); // Hide everything to do with quoted text. View quotedTextView = findViewById(R.id.quoted_text_area); if (quotedTextView != null) { quotedTextView.setVisibility(View.GONE); } }