1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-06-10 17:36:16 +00:00

SmsDataProvider: New helper & rename some args

This commit is contained in:
Loïc Blot (@U-Exp) 2014-12-12 17:39:58 +01:00
parent b3710b2e79
commit 7cb2e8473b

View File

@ -43,10 +43,17 @@ public class SmsDataProvider extends ContentProvider {
);
}
public Cursor query(String mailBox, String condition) {
public Cursor query(String mailBox, String selection) {
return query(Uri.parse(mailBox),
new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
condition, null, null
selection, null, null
);
}
public Cursor query(String mailBox, String selection, String[] selectionArgs) {
return query(Uri.parse(mailBox),
new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
selection, selectionArgs, null
);
}