void () { if (myPreparationTask != null) { myPreparationTask.cancel(); myPreparationTask = null; } myAlarm.cancelAllRequests(); if (myCurrentProgress != null) { myCurrentProgress.cancel(); myCurrentProgress = null; } }