Prevent crash depending on Android Activity management
This commit is contained in:
parent
b212ad4ce1
commit
9fea3b8fbb
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) {
|
private void showPopupMenuAskingImageSize(String filePath, Bitmap image) {
|
||||||
fileToUploadPath = filePath;
|
fileToUploadPath = filePath;
|
||||||
imageToUpload = image;
|
imageToUpload = image;
|
||||||
|
try {
|
||||||
sendImage.showContextMenu();
|
sendImage.showContextMenu();
|
||||||
|
} catch (Exception e) {
|
||||||
|
showPopupMenuAskingImageSize(filePath, image);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void uploadAndSendImage(final String filePath, final Bitmap image, final ImageSize size) {
|
private void uploadAndSendImage(final String filePath, final Bitmap image, final ImageSize size) {
|
||||||
|
|
Loading…
Reference in a new issue