void (final int fadeoutDelay) { if (fadeoutDelay > 0) { myFadeoutAlarm.cancelAllRequests(); myFadeoutRequestMillis = System.currentTimeMillis(); myFadeoutRequestDelay = fadeoutDelay; myFadeoutAlarm.addRequest(() -> { if (mySmartFadeout) { setAnimationEnabled(true); } hide(true); }, fadeoutDelay, null); } }