[Replicant] [PATCH 4/9] Revert "Check additional extra for sms text from share Intent"
belgin
belginstirbu at hotmail.com
Mon Nov 23 23:47:03 UTC 2020
This reverts commit 4bd35b2f0ec3dff9fd76a76a0cb473da8e63951f.
---
.../messaging/ui/conversationlist/ShareIntentActivity.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/com/android/messaging/ui/conversationlist/ShareIntentActivity.java b/src/com/android/messaging/ui/conversationlist/ShareIntentActivity.java
index 6f3c968..ef7fcef 100644
--- a/src/com/android/messaging/ui/conversationlist/ShareIntentActivity.java
+++ b/src/com/android/messaging/ui/conversationlist/ShareIntentActivity.java
@@ -40,7 +40,6 @@ import java.util.ArrayList;
public class ShareIntentActivity extends BaseBugleActivity implements
ShareIntentFragment.HostInterface {
- private static final String EXTRA_SMS_BODY = "sms_body";
private MessageData mDraftMessage;
@@ -82,12 +81,7 @@ public class ShareIntentActivity extends BaseBugleActivity implements
contentUri, intent.getType(), contentType));
}
if (ContentType.TEXT_PLAIN.equals(contentType)) {
- // Text could be stored in either key. Try both.
- String sharedText = intent.getStringExtra(EXTRA_SMS_BODY);
- if (TextUtils.isEmpty(sharedText)) {
- sharedText = intent.getStringExtra(Intent.EXTRA_TEXT);
- }
-
+ final String sharedText = intent.getStringExtra(Intent.EXTRA_TEXT);
if (sharedText != null) {
mDraftMessage = MessageData.createSharedMessage(sharedText);
} else {
--
2.11.0
More information about the Replicant
mailing list