Fixed batch saving attachments

pull/187/head
M66B 5 years ago
parent 9addebddfe
commit d9e1d263d5

@ -536,7 +536,7 @@ public class FragmentBase extends Fragment {
OutputStream os = null; OutputStream os = null;
InputStream is = null; InputStream is = null;
try { try {
os = context.getContentResolver().openOutputStream(uri); os = context.getContentResolver().openOutputStream(document.getUri());
is = new FileInputStream(file); is = new FileInputStream(file);
byte[] buffer = new byte[Helper.BUFFER_SIZE]; byte[] buffer = new byte[Helper.BUFFER_SIZE];
@ -569,6 +569,7 @@ public class FragmentBase extends Fragment {
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Log.w(ex);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
if (ex instanceof RecoverableSecurityException) { if (ex instanceof RecoverableSecurityException) {
handle((RecoverableSecurityException) ex); handle((RecoverableSecurityException) ex);

Loading…
Cancel
Save