Apply missing additions to android project

This commit is contained in:
Dean Herbert 2021-03-08 15:17:10 +09:00
parent 6cb0db9c33
commit 02194a93cb

View File

@ -100,15 +100,15 @@ namespace osu.Android
// copy to an arbitrary-access memory stream to be able to proceed with the import. // copy to an arbitrary-access memory stream to be able to proceed with the import.
var copy = new MemoryStream(); var copy = new MemoryStream();
using (var stream = ContentResolver.OpenInputStream(uri)) using (var stream = ContentResolver.OpenInputStream(uri))
await stream.CopyToAsync(copy); await stream.CopyToAsync(copy).ConfigureAwait(false);
lock (tasks) lock (tasks)
{ {
tasks.Add(new ImportTask(copy, filename)); tasks.Add(new ImportTask(copy, filename));
} }
})); })).ConfigureAwait(false);
await game.Import(tasks.ToArray()); await game.Import(tasks.ToArray()).ConfigureAwait(false);
}, TaskCreationOptions.LongRunning); }, TaskCreationOptions.LongRunning);
} }
} }