Catch exception on image decoding error in notification

This commit is contained in:
Moxie Marlinspike 2018-01-18 10:11:33 -08:00
parent e60715587f
commit 763fa0dd21

View File

@ -254,7 +254,8 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
.submit(500, 500)
.get();
} catch (InterruptedException | ExecutionException e) {
throw new AssertionError(e);
Log.w(TAG, e);
return Bitmap.createBitmap(500, 500, Bitmap.Config.RGB_565);
}
}