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:
parent
92713ded76
commit
fda38cf855
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user