mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-06-12 10:26:20 +00:00
SmsDataProvider: New helper & rename some args
This commit is contained in:
parent
b3710b2e79
commit
7cb2e8473b
@ -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),
|
return query(Uri.parse(mailBox),
|
||||||
new String[] { "read", "date", "address", "seen", "body", "_id", "type", },
|
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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user