mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Use most backwards-compatible overload for query
This commit is contained in:
@ -57,7 +57,9 @@ namespace osu.Android
|
|||||||
|
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user