1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-07 07:56:14 +00:00

when using bulk limit order by date DESC not _id ASC.

this permit to sync recent messages instead of older when doing sync now action
This commit is contained in:
Loic Blot 2016-10-22 19:20:04 +02:00
parent 92713ded76
commit fda38cf855

View File

@ -109,7 +109,7 @@ public class SmsDataProvider extends ContentProvider {
if (bulkLimit > 0) {
if (sortOrder == null)
sortOrder = "_id ";
sortOrder = "date DESC";
sortOrder += " LIMIT " + bulkLimit.toString();
Log.i(SmsDataProvider.TAG, "query: Bulk limit set to " + bulkLimit.toString());