diff --git a/src/org/linphone/ChatFragment.java b/src/org/linphone/ChatFragment.java index 3e7301b70..cec09d33a 100644 --- a/src/org/linphone/ChatFragment.java +++ b/src/org/linphone/ChatFragment.java @@ -669,7 +669,11 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC private void showPopupMenuAskingImageSize(String filePath, Bitmap image) { fileToUploadPath = filePath; imageToUpload = image; - sendImage.showContextMenu(); + try { + sendImage.showContextMenu(); + } catch (Exception e) { + showPopupMenuAskingImageSize(filePath, image); + } } private void uploadAndSendImage(final String filePath, final Bitmap image, final ImageSize size) {