1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Avoid another crash in Android launcher

This commit is contained in:
Ivan Savenko 2023-08-06 13:43:08 +03:00
parent 5faaf175f9
commit 702f57d5cc

View File

@ -133,6 +133,12 @@ public class ExportDataController extends LauncherSettingController<Void, Void>
}
}
if (exported == null)
{
publishProgress("Failed to copy file " + child.getName());
return false;
}
try(
final OutputStream targetStream = owner.getContentResolver()
.openOutputStream(exported.getUri());