From e315fdff18c9223703daeebbde04ac17ec150203 Mon Sep 17 00:00:00 2001 From: Serhii Solobaiev Date: Fri, 14 Sep 2018 16:47:10 +0300 Subject: [PATCH] fix Attempt to invoke virtual method 'boolean android.app.AlertDialog.isShowing() --- .../java/net/alhazmy13/mediapicker/Image/ImageActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libary/src/main/java/net/alhazmy13/mediapicker/Image/ImageActivity.java b/libary/src/main/java/net/alhazmy13/mediapicker/Image/ImageActivity.java index b820c42..80ec55f 100644 --- a/libary/src/main/java/net/alhazmy13/mediapicker/Image/ImageActivity.java +++ b/libary/src/main/java/net/alhazmy13/mediapicker/Image/ImageActivity.java @@ -179,8 +179,7 @@ protected void onSaveInstanceState(Bundle outState) { outState.putString(ImageTags.Tags.CAMERA_IMAGE_URI, mImageUri.toString()); outState.putSerializable(ImageTags.Tags.IMG_CONFIG, mImgConfig); } - outState.putBoolean(ImageTags.Tags.IS_ALERT_SHOWING, alertDialog.isShowing()); - + outState.putBoolean(ImageTags.Tags.IS_ALERT_SHOWING, (alertDialog == null ? false : alertDialog.isShowing())); } @Override