private boolean shouldShow(long firstLaunchTime, long lastLaunchTime, int launchCount) { if (launchCount > BuildConfig.MIN_LAUNCHES_BEFORE_APPRATER) { final int daysBetween = TimeUtils.daysBetween(new Date(System.currentTimeMillis()), new Date(firstLaunchTime)); return daysBetween >= BuildConfig.MIN_DAYS_BEFORE_APPRATER; } return false; }
private long getEndTime() { final Time time = new Time(); time.hour = 23; time.minute = 59; time.second = 59; time.normalize(false); return TimeUtils.toDateTime(getView().getEndDate(), time); }
private long getStartTime() { final Time time = new Time(); time.hour = 0; time.minute = 0; time.second = 0; time.normalize(false); return TimeUtils.toDateTime(getView().getStartDate(), time); }