am 4827f0bc
: am f85d9e08
: am 9d73facf
: Merge "Fix restoreBodySource key so it returns the correct value." into ub-gmail-ur14-dev
* commit '4827f0bc4085d44d7524145b22856d78316ebfec': Fix restoreBodySource key so it returns the correct value.
This commit is contained in:
commit
cadbc47f79
@ -493,9 +493,6 @@ public abstract class EmailContent {
|
|||||||
public static final int CONTENT_SOURCE_KEY_COLUMN = 4;
|
public static final int CONTENT_SOURCE_KEY_COLUMN = 4;
|
||||||
public static final int CONTENT_QUOTED_TEXT_START_POS_COLUMN = 5;
|
public static final int CONTENT_QUOTED_TEXT_START_POS_COLUMN = 5;
|
||||||
|
|
||||||
private static final String[] PROJECTION_SOURCE_KEY =
|
|
||||||
new String[] {BaseColumns._ID, BodyColumns.SOURCE_MESSAGE_KEY};
|
|
||||||
|
|
||||||
public long mMessageKey;
|
public long mMessageKey;
|
||||||
public String mHtmlContent;
|
public String mHtmlContent;
|
||||||
public String mTextContent;
|
public String mTextContent;
|
||||||
@ -577,7 +574,7 @@ public abstract class EmailContent {
|
|||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public static long restoreBodySourceKey(Context context, long messageId) {
|
public static long restoreBodySourceKey(Context context, long messageId) {
|
||||||
return Utility.getFirstRowLong(context, Body.CONTENT_URI,
|
return Utility.getFirstRowLong(context, Body.CONTENT_URI,
|
||||||
Body.PROJECTION_SOURCE_KEY,
|
new String[] {BodyColumns.SOURCE_MESSAGE_KEY},
|
||||||
BodyColumns.MESSAGE_KEY + "=?", new String[] {Long.toString(messageId)}, null,
|
BodyColumns.MESSAGE_KEY + "=?", new String[] {Long.toString(messageId)}, null,
|
||||||
0, 0L);
|
0, 0L);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user