/** * Dismisses the SuperCardToast without an animation. */ public void dismissImmediately() { ManagerSuperCardToast.getInstance().remove(this); if (mHandler != null) { mHandler.removeCallbacks(mHideRunnable); mHandler.removeCallbacks(mHideWithAnimationRunnable); mHandler = null; } if (mToastView != null && mViewGroup != null) { mViewGroup.removeView(mToastView); if (mOnDismissWrapper != null) { mOnDismissWrapper.onDismiss(getView()); } mToastView = null; } else { Log.e(TAG, ERROR_VIEWCONTAINERNULL); } }
@Override public void onAnimationEnd(Animation animation) { if(superActivityToast.getOnDismissWrapper() != null){ superActivityToast.getOnDismissWrapper().onDismiss(superActivityToast.getView()); } /* Show the SuperActivityToast next in the list if any exist */ ManagerSuperActivityToast.this.showNextSuperToast(); }