diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-08-23 11:44:57 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-08-23 11:44:57 -0700 |
commit | a2baaf62985329697a3fbcc5c4e5c073c91c465a (patch) | |
tree | a94ab069ab1074e3d35fff9fa423aa5e1fde093f | |
parent | 3234c38f1f1cc34324edaab2b2308ab2fffd08dc (diff) | |
parent | 6a9c779f0c0dc6cf3ae942ff70fb6c806aa166dc (diff) | |
download | Mms-tools_r7.tar.gz |
Merge "Mms: Delivery report should display recent message details."android-sdk-tools_r7android-adt-0.9.9android-adt-0.9.8tools_r7
-rw-r--r-- | src/com/android/mms/transaction/MessagingNotification.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java index e1e4db53..548f95d6 100644 --- a/src/com/android/mms/transaction/MessagingNotification.java +++ b/src/com/android/mms/transaction/MessagingNotification.java @@ -330,13 +330,13 @@ public class MessagingNotification { ContentResolver resolver = context.getContentResolver(); Cursor cursor = SqliteWrapper.query(context, resolver, Sms.CONTENT_URI, SMS_STATUS_PROJECTION, NEW_DELIVERY_SM_CONSTRAINT, - null, Sms.DATE + " desc"); + null, Sms.DATE); if (cursor == null) return null; try { - if (!cursor.moveToFirst()) + if (!cursor.moveToLast()) return null; String address = cursor.getString(COLUMN_SMS_ADDRESS); |