diff options
author | Danesh M <daneshm90@gmail.com> | 2015-07-03 15:26:32 -0700 |
---|---|---|
committer | Danesh Mondegarian <daneshm90@gmail.com> | 2015-07-05 23:55:17 -0700 |
commit | aa98e8272dfe7b221f9a42e9a6d63fc90f923063 (patch) | |
tree | 38ae18b781659399881178a7e243ed7f98c41e5d | |
parent | d8da02b5eaadf18019fe1bb19ff781f41431c492 (diff) | |
download | android_packages_providers_TelephonyProvider-aa98e8272dfe7b221f9a42e9a6d63fc90f923063.tar.gz android_packages_providers_TelephonyProvider-aa98e8272dfe7b221f9a42e9a6d63fc90f923063.tar.bz2 android_packages_providers_TelephonyProvider-aa98e8272dfe7b221f9a42e9a6d63fc90f923063.zip |
MmsProvider : Add ability to get thread information in search
Change-Id: Ifdd498db6307cdac3a4bc27281e557888d8b5466
-rw-r--r-- | src/com/android/providers/telephony/MmsSmsProvider.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/providers/telephony/MmsSmsProvider.java b/src/com/android/providers/telephony/MmsSmsProvider.java index b23666f..60fdf43 100644 --- a/src/com/android/providers/telephony/MmsSmsProvider.java +++ b/src/com/android/providers/telephony/MmsSmsProvider.java @@ -238,8 +238,10 @@ public class MmsSmsProvider extends ContentProvider { // using a UNION so we have to have the same number of result columns from // both queries. private static final String SMS_MMS_QUERY = - SMS_QUERY + " UNION " + MMS_QUERY + - " GROUP BY thread_id ORDER BY thread_id ASC, date DESC"; + "select threads._id, threads.date, message_count, recipient_ids," + + "snippet, snippet_cs, read, error, has_attachment, body, * from " + + "(" + SMS_QUERY + " UNION " + MMS_QUERY + ") as smsmms,threads where " + + "threads._id=thread_id GROUP BY thread_id ORDER BY thread_id ASC, smsmms.date DESC"; private static final String SMS_PROJECTION = "'sms' AS transport_type, _id, thread_id," + "address, body, sub_id, phone_id, date, date_sent, read, type," |