mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-20 04:58:07 +00:00
Prevent crash depending on Android Activity management
This commit is contained in:
parent
88158fa0fc
commit
a3ca0aa733
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue