Commits

JRummy16  committed 0a25a3c Draft

remove logging alarm time

  • Participants
  • Parent commits 894b6b9

Comments (0)

Files changed (1)

File src/com/jrummy/busybox/installer/util/UpdateHelper.java

 
 package com.jrummy.busybox.installer.util;
 
-import java.text.SimpleDateFormat;
 import java.util.Calendar;
-import java.util.concurrent.TimeUnit;
 
 import android.app.AlarmManager;
 import android.app.PendingIntent;
 			calendar.add(Calendar.WEEK_OF_YEAR, 1);
 		}
 
-		long millis = interval;
-		long days = TimeUnit.MILLISECONDS.toDays(millis);
-		millis -= TimeUnit.DAYS.toMillis(days);
-		long hours = TimeUnit.MILLISECONDS.toHours(millis);
-		millis -= TimeUnit.HOURS.toMillis(hours);
-		long minutes = TimeUnit.MILLISECONDS.toMinutes(millis);
-		millis -= TimeUnit.MINUTES.toMillis(minutes);
-		long seconds = TimeUnit.MILLISECONDS.toSeconds(millis);
-
-		StringBuilder sb = new StringBuilder(64);
-		if (days > 0) {
-			sb.append(days == 1 ? " Day " : days + " Days ");
-		}
-		if (hours > 0) {
-			sb.append(hours + " Hours ");
-		}
-		if (minutes > 0) {
-			sb.append(minutes + " Minutes ");
-		}
-		if (seconds > 0) {
-			sb.append(seconds + " Seconds ");
-		}
-
 		AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
 		am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), interval, pendingIntent);
-		Log.i(TAG, "Set a repeating alarm starting on " + 
-				new SimpleDateFormat("MM/dd/yyyy HH:mm").format(calendar.getTime()) + 
-				" repeating every " + sb.toString());
 	}
 }