mirror of
https://github.com/osukey/osukey.git
synced 2025-04-29 02:37:25 +09:00
Apply missing additions to android project
This commit is contained in:
parent
6cb0db9c33
commit
02194a93cb
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user