diff --git a/library/src/de/keyboardsurfer/android/widget/crouton/Crouton.java b/library/src/de/keyboardsurfer/android/widget/crouton/Crouton.java index 56db852..ea0fa26 100644 --- a/library/src/de/keyboardsurfer/android/widget/crouton/Crouton.java +++ b/library/src/de/keyboardsurfer/android/widget/crouton/Crouton.java @@ -679,7 +679,15 @@ public static String getLicenseText() { * false. */ boolean isShowing() { - return (null != activity) && (null != croutonView) && (null != croutonView.getParent()); + return (null != activity) && (isCroutonViewNotNull() || isCustomViewNotNull()); + } + + private boolean isCroutonViewNotNull() { + return (null != croutonView) && (null != croutonView.getParent()); + } + + private boolean isCustomViewNotNull() { + return (null != customView) && (null != customView.getParent()); } /** Removes the activity reference this {@link Crouton} is holding */