public static ALifeToast makeText( Activity activity, ViewGroup contentView, CharSequence text, ToastType toastType, long duration, OnToastClickListener toastClickListener) { if (sALifeToast == null) { if (activity == null) { return null; } sALifeToast = new ALifeToast(activity); } sALifeToast.setFuuboToast(activity, contentView, text, toastType, duration, toastClickListener); return sALifeToast; }
public static void cancelAll() { if (null != sALifeToast) { sALifeToast.clearTaskQueue(); } }