mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-29 11:18:33 +00:00
We need READ_CALL_LOG if targetSDK is > 15. What a drag.
This commit is contained in:
@@ -428,10 +428,11 @@ public class MmsDatabase extends Database {
|
||||
}
|
||||
|
||||
public Cursor getCarrierMmsInformation(String apn) {
|
||||
Uri uri = Uri.withAppendedPath(Uri.parse("content://telephony/carriers"), "current");
|
||||
String selection = (apn == null || apn.trim().length() == 0) ? null : String.format("apn = '%s'", apn.trim());
|
||||
Uri uri = Uri.withAppendedPath(Uri.parse("content://telephony/carriers"), "current");
|
||||
String selection = (apn == null || apn.trim().length() == 0) ? null : "apn = ?";
|
||||
String[] selectionArgs = (apn == null || apn.trim().length() == 0) ? null : new String[] {apn.trim()};
|
||||
|
||||
return context.getContentResolver().query(uri, null, selection, null, null);
|
||||
return context.getContentResolver().query(uri, null, selection, selectionArgs, null);
|
||||
}
|
||||
|
||||
private PduHeaders getHeadersForId(long messageId) throws MmsException {
|
||||
|
||||
Reference in New Issue
Block a user