mirror of https://github.com/ppy/osu
Use most backwards-compatible overload for query
This commit is contained in:
parent
38e0b4e64d
commit
a323c5ce58
|
@ -57,7 +57,9 @@ protected override void OnNewIntent(Intent intent)
|
||||||
|
|
||||||
private void handleImportFromUri(Uri uri)
|
private void handleImportFromUri(Uri uri)
|
||||||
{
|
{
|
||||||
var cursor = ContentResolver?.Query(uri, new[] { OpenableColumns.DisplayName }, null, null);
|
// there are more performant overloads of this method, but this one is the most backwards-compatible
|
||||||
|
// (dates back to API 1).
|
||||||
|
var cursor = ContentResolver?.Query(uri, null, null, null, null);
|
||||||
|
|
||||||
if (cursor == null)
|
if (cursor == null)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue