Noty icon indicating copy to clipboard operation
Noty copied to clipboard

Warning appears after it's been dismissed on click

Open DavidRojasRobles opened this issue 5 years ago • 0 comments

If I've dismissed the warning and I click over where it appeared, the warning shows up briefly (apparently for as long as the dismissTime), completely blocking whatever is underneath, no matter what ViewGroup I pass as parent layout or how long I wait after the warning has been dismissed.

If I drop the dismissTime to 0, it no longer shows, but still blocks the buttons I have underneath. It doesn't matter how long the revealTime is.

I'm creating the warning like this:

Noty.init(context, mensaje,view, Noty.WarningStyle.ACTION) .setActionText("OK") .setHeight(new RelativeLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT)) .setWarningBoxMargins(40, 40, 40, 40) .setWarningBoxBgColor("#67B93D") .setWarningTextColor("#ffffff") .setActionTextColor("#ffffff") .setWarningTappedColor("#5FAC38") .setWarningBoxRadius(10, 10, 10, 10) .setWarningBoxPosition(Noty.WarningPos.CENTER) .setAnimation(Noty.RevealAnim.FADE_IN, Noty.DismissAnim.FADE_OUT, 0, 0) .show();

This only happens after the warning has been shown correctly at least once. Noty-issue

DavidRojasRobles avatar Feb 11 '20 14:02 DavidRojasRobles