|
|
@ -147,6 +147,7 @@ import org.w3c.dom.css.CSSStyleSheet;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
|
import java.io.BufferedOutputStream;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.File;
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
import java.io.FileInputStream;
|
|
|
|
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
import java.io.FileOutputStream;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import java.io.InputStream;
|
|
|
@ -2018,7 +2019,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
// External app sending absolute file
|
|
|
|
// External app sending absolute file
|
|
|
|
if (ex instanceof SecurityException)
|
|
|
|
if (ex instanceof SecurityException)
|
|
|
|
handleFileShare();
|
|
|
|
handleFileShare();
|
|
|
|
else if (ex instanceof IllegalArgumentException)
|
|
|
|
else if (ex instanceof IllegalArgumentException || ex instanceof FileNotFoundException)
|
|
|
|
Snackbar.make(view, ex.toString(), Snackbar.LENGTH_LONG)
|
|
|
|
Snackbar.make(view, ex.toString(), Snackbar.LENGTH_LONG)
|
|
|
|
.setGestureInsetBottomIgnored(true).show();
|
|
|
|
.setGestureInsetBottomIgnored(true).show();
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -3967,7 +3968,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
finish();
|
|
|
|
finish();
|
|
|
|
else if (ex instanceof SecurityException)
|
|
|
|
else if (ex instanceof SecurityException)
|
|
|
|
handleFileShare();
|
|
|
|
handleFileShare();
|
|
|
|
else if (ex instanceof IllegalArgumentException)
|
|
|
|
else if (ex instanceof IllegalArgumentException || ex instanceof FileNotFoundException)
|
|
|
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
|
|
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
|
|
|
.setGestureInsetBottomIgnored(true).show();
|
|
|
|
.setGestureInsetBottomIgnored(true).show();
|
|
|
|
else if (ex instanceof IllegalStateException) {
|
|
|
|
else if (ex instanceof IllegalStateException) {
|
|
|
|