From 03e58e218726f9f1862b3db19b78d402814e9e9c Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 25 Feb 2020 21:09:01 +0100 Subject: [PATCH] Fixed crash --- app/src/main/java/eu/faircode/email/ActivitySignature.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivitySignature.java b/app/src/main/java/eu/faircode/email/ActivitySignature.java index b0e88d7ebb..5f990336e6 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySignature.java +++ b/app/src/main/java/eu/faircode/email/ActivitySignature.java @@ -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); }