1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Fixed crash

This commit is contained in:
M66B 2020-02-25 21:09:01 +01:00
parent 5b992b3166
commit 03e58e2187

View file

@ -46,7 +46,6 @@ import androidx.appcompat.app.AlertDialog;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.io.FileNotFoundException;
import java.io.InputStream;
public class ActivitySignature extends ActivityBase {
@ -287,7 +286,8 @@ public class ActivitySignature extends ActivityBase {
Log.i("Loading image source=" + uri);
InputStream inputStream = context.getContentResolver().openInputStream(uri);
d = Drawable.createFromStream(inputStream, uri.toString());
} catch (FileNotFoundException ex) {
} catch (Throwable ex) {
// FileNotFound, Security
Log.w(ex);
d = context.getResources().getDrawable(R.drawable.baseline_broken_image_24);
}