summaryrefslogtreecommitdiffstats
path: root/emailcommon/src/com/android/emailcommon/provider/EmailContent.java
diff options
context:
space:
mode:
authorTony Mantler <nicoya@google.com>2014-04-17 14:30:01 -0700
committerTony Mantler <nicoya@google.com>2014-04-17 14:32:10 -0700
commitfd69e5b03600acd4b5c9fd0684c505d42740d817 (patch)
treeec785d6ebaa4a91632f33dd08ee80c048fde131f /emailcommon/src/com/android/emailcommon/provider/EmailContent.java
parent0e26184ac7298da85f4c2d994d75376f849cb9ee (diff)
downloadandroid_packages_apps_Email-fd69e5b03600acd4b5c9fd0684c505d42740d817.tar.gz
android_packages_apps_Email-fd69e5b03600acd4b5c9fd0684c505d42740d817.tar.bz2
android_packages_apps_Email-fd69e5b03600acd4b5c9fd0684c505d42740d817.zip
Purge unused/obsolete body fields
Change-Id: Idafa09b58f5753e4cb3cad754c861cc8e3d80c34
Diffstat (limited to 'emailcommon/src/com/android/emailcommon/provider/EmailContent.java')
-rwxr-xr-xemailcommon/src/com/android/emailcommon/provider/EmailContent.java65
1 files changed, 7 insertions, 58 deletions
diff --git a/emailcommon/src/com/android/emailcommon/provider/EmailContent.java b/emailcommon/src/com/android/emailcommon/provider/EmailContent.java
index b5a72ba29..628ed6a0d 100755
--- a/emailcommon/src/com/android/emailcommon/provider/EmailContent.java
+++ b/emailcommon/src/com/android/emailcommon/provider/EmailContent.java
@@ -465,19 +465,6 @@ public abstract class EmailContent {
CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/body");
}
- public static final int CONTENT_ID_COLUMN = 0;
- public static final int CONTENT_MESSAGE_KEY_COLUMN = 1;
- public static final int CONTENT_HTML_CONTENT_COLUMN = 2;
- public static final int CONTENT_TEXT_CONTENT_COLUMN = 3;
- @Deprecated
- public static final int CONTENT_HTML_REPLY_COLUMN = 4;
- @Deprecated
- public static final int CONTENT_TEXT_REPLY_COLUMN = 5;
- public static final int CONTENT_SOURCE_KEY_COLUMN = 6;
- @Deprecated
- public static final int CONTENT_INTRO_TEXT_COLUMN = 7;
- public static final int CONTENT_QUOTED_TEXT_START_POS_COLUMN = 8;
-
/**
* Following values are for EmailMessageCursor
*/
@@ -493,34 +480,23 @@ public abstract class EmailContent {
BodyColumns.MESSAGE_KEY,
BodyColumns.HTML_CONTENT,
BodyColumns.TEXT_CONTENT,
- BodyColumns.HTML_REPLY,
- BodyColumns.TEXT_REPLY,
BodyColumns.SOURCE_MESSAGE_KEY,
- BodyColumns.INTRO_TEXT,
BodyColumns.QUOTED_TEXT_START_POS
};
+ public static final int CONTENT_ID_COLUMN = 0;
+ public static final int CONTENT_MESSAGE_KEY_COLUMN = 1;
+ public static final int CONTENT_HTML_CONTENT_COLUMN = 2;
+ public static final int CONTENT_TEXT_CONTENT_COLUMN = 3;
+ public static final int CONTENT_SOURCE_KEY_COLUMN = 4;
+ public static final int CONTENT_QUOTED_TEXT_START_POS_COLUMN = 5;
+
public static final String[] COMMON_PROJECTION_TEXT = new String[] {
BodyColumns._ID, BodyColumns.TEXT_CONTENT
};
public static final String[] COMMON_PROJECTION_HTML = new String[] {
BodyColumns._ID, BodyColumns.HTML_CONTENT
};
- @Deprecated
- private static final String[] COMMON_PROJECTION_REPLY_TEXT = new String[] {
- BodyColumns._ID, BodyColumns.TEXT_REPLY
- };
- @Deprecated
- private static final String[] COMMON_PROJECTION_REPLY_HTML = new String[] {
- BodyColumns._ID, BodyColumns.HTML_REPLY
- };
- @Deprecated
- private static final String[] COMMON_PROJECTION_INTRO = new String[] {
- BodyColumns._ID, BodyColumns.INTRO_TEXT
- };
- public static final String[] COMMON_PROJECTION_SOURCE = new String[] {
- BodyColumns._ID, BodyColumns.SOURCE_MESSAGE_KEY
- };
public static final int COMMON_PROJECTION_COLUMN_TEXT = 1;
private static final String[] PROJECTION_SOURCE_KEY =
@@ -529,18 +505,12 @@ public abstract class EmailContent {
public long mMessageKey;
public String mHtmlContent;
public String mTextContent;
- @Deprecated
- public String mHtmlReply;
- @Deprecated
- public String mTextReply;
public int mQuotedTextStartPos;
/**
* Points to the ID of the message being replied to or forwarded. Will always be set.
*/
public long mSourceKey;
- @Deprecated
- public String mIntroText;
public Body() {
mBaseUri = CONTENT_URI;
@@ -554,10 +524,7 @@ public abstract class EmailContent {
values.put(BodyColumns.MESSAGE_KEY, mMessageKey);
values.put(BodyColumns.HTML_CONTENT, mHtmlContent);
values.put(BodyColumns.TEXT_CONTENT, mTextContent);
- values.put(BodyColumns.HTML_REPLY, mHtmlReply);
- values.put(BodyColumns.TEXT_REPLY, mTextReply);
values.put(BodyColumns.SOURCE_MESSAGE_KEY, mSourceKey);
- values.put(BodyColumns.INTRO_TEXT, mIntroText);
return values;
}
@@ -653,21 +620,6 @@ public abstract class EmailContent {
return restoreTextWithMessageId(context, messageId, Body.COMMON_PROJECTION_HTML);
}
- @Deprecated
- public static String restoreReplyTextWithMessageId(Context context, long messageId) {
- return restoreTextWithMessageId(context, messageId, Body.COMMON_PROJECTION_REPLY_TEXT);
- }
-
- @Deprecated
- public static String restoreReplyHtmlWithMessageId(Context context, long messageId) {
- return restoreTextWithMessageId(context, messageId, Body.COMMON_PROJECTION_REPLY_HTML);
- }
-
- @Deprecated
- public static String restoreIntroTextWithMessageId(Context context, long messageId) {
- return restoreTextWithMessageId(context, messageId, Body.COMMON_PROJECTION_INTRO);
- }
-
private static String readBodyFromPipe(ParcelFileDescriptor d) {
final AutoCloseInputStream htmlInput = new AutoCloseInputStream(d);
String content = null;
@@ -710,10 +662,7 @@ public abstract class EmailContent {
if (textDescriptor != null) {
mTextContent = readBodyFromPipe(textDescriptor);
}
- mHtmlReply = cursor.getString(CONTENT_HTML_REPLY_COLUMN);
- mTextReply = cursor.getString(CONTENT_TEXT_REPLY_COLUMN);
mSourceKey = cursor.getLong(CONTENT_SOURCE_KEY_COLUMN);
- mIntroText = cursor.getString(CONTENT_INTRO_TEXT_COLUMN);
mQuotedTextStartPos = cursor.getInt(CONTENT_QUOTED_TEXT_START_POS_COLUMN);
}
}