}
}
}
}
Program program = reminder.getProgram();
if (program.isOnAir()) {
final int progMinutesAfterMidnight = program.getHours() * 60
+ program.getMinutes();
int minutesRunning = IOUtilities.getMinutesAfterMidnight() - progMinutesAfterMidnight;
if (minutesRunning < 0) {
minutesRunning += 24 * 60;
}
if (minutesRunning == 0) {
msg = mLocalizer.msg("alreadyRunning", "Just started");
}
else if (minutesRunning == 1) {
msg = mLocalizer.msg("alreadyRunningMinute", "Already running {0} minute", minutesRunning);
}
else {
msg = mLocalizer.msg("alreadyRunningMinutes", "Already running {0} minutes", minutesRunning);
}
} else if (program.isExpired()) {
msg = mLocalizer.msg("ended", "Program elapsed");
}
else {
msg = mLocalizer.msg("soonStarts", "Soon starts");
}