diff --git a/src/main/java/org/thoughtcrime/securesms/mms/AttachmentManager.java b/src/main/java/org/thoughtcrime/securesms/mms/AttachmentManager.java index 8d91fa34b2..cfc4b8e0d1 100644 --- a/src/main/java/org/thoughtcrime/securesms/mms/AttachmentManager.java +++ b/src/main/java/org/thoughtcrime/securesms/mms/AttachmentManager.java @@ -639,14 +639,12 @@ public void onClick(View v) { private class EditButtonListener implements View.OnClickListener { @Override public void onClick(View v) { - if (Build.VERSION.SDK_INT >= 19) { + Uri imgUri = getSlideUri(); + if (imgUri != null) { Intent intent = new Intent(context, ScribbleActivity.class); - intent.setData(getSlideUri()); + intent.setData(imgUri); ((Activity) context).startActivityForResult(intent, ScribbleActivity.SCRIBBLE_REQUEST_CODE); } - else { - Toast.makeText(context, "Image editing requires Android 4.4 KitKat or newer.", Toast.LENGTH_LONG).show(); - } } }