mirror of https://github.com/M66B/FairEmail.git
Suppress file not found error on loading draft texts
This commit is contained in:
parent
e87525e9c3
commit
05ce665409
|
@ -79,6 +79,7 @@ import java.io.BufferedOutputStream;
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
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;
|
||||||
|
@ -1372,6 +1373,7 @@ public class FragmentCompose extends FragmentEx {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
|
if (!(ex instanceof FileNotFoundException))
|
||||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||||
}
|
}
|
||||||
}.load(FragmentCompose.this, a);
|
}.load(FragmentCompose.this, a);
|
||||||
|
|
Loading…
Reference in New Issue