public void showToast(int message, int duration, int icon, int gravity, Object... args) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showToast(message, duration, icon, gravity, args); } }
public void showToast(int message, int duration, int icon) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showToast(message, duration, icon); } }
public void showToastShort(int message, Object... args) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showToastShort(message, args); } }
public void showToastShort(String message) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showToastShort(message); } }
public void showPinterestToast(String message, int icon, int gravity) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showPinterestToast(message, icon, gravity); } }
public void showPinterestToast(int msgResid, int icon, int gravity) { Activity activity = getActivity(); if (activity instanceof ToastControl) { ((ToastControl) activity).showPinterestToast(msgResid, icon, gravity); } }