|
|
@ -574,7 +574,9 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|
|
|
if (is == null)
|
|
|
|
if (is == null)
|
|
|
|
throw new FileNotFoundException(uri.toString());
|
|
|
|
throw new FileNotFoundException(uri.toString());
|
|
|
|
|
|
|
|
|
|
|
|
Helper.copy(is, new FileOutputStream(file));
|
|
|
|
try (FileOutputStream fos = new FileOutputStream(file)) {
|
|
|
|
|
|
|
|
Helper.copy(is, fos);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return FileProviderEx.getUri(this, BuildConfig.APPLICATION_ID, file);
|
|
|
|
return FileProviderEx.getUri(this, BuildConfig.APPLICATION_ID, file);
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
} catch (Throwable ex) {
|
|
|
|