@Override protected void onDestroy() { super.onDestroy(); ToastMaster.cancelToast(); if (mCursor != null) { mCursor.close(); } }
private static void popAlarmSetToast(Context context, long timeInMillis) { String toastText = formatToast(context, timeInMillis); Toast toast = Toast.makeText(context, toastText, Toast.LENGTH_LONG); ToastMaster.setToast(toast); toast.show(); }
@Override protected void onDestroy() { super.onDestroy(); ToastMaster.cancelToast(); }