Skip to content

Commit

Permalink
Preparing 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyvasilyev committed Jun 27, 2020
1 parent 31aa7d6 commit e080185
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public class TimelineView extends View {
public static final long INTERVAL_DAY_7 = 168 * 60 * 60 * 1000L; // 7 days
public static final long INTERVAL_DAY_30 = 720 * 60 * 60 * 1000L; // 30 days

public static final long ANIMATION_DURATION_MSEC = 150;

@SuppressWarnings("FieldCanBeLocal")
private final float STROKE_SELECTED_WIDTH = 2f;
@SuppressWarnings("FieldCanBeLocal")
Expand All @@ -62,8 +64,6 @@ public class TimelineView extends View {
@SuppressWarnings("FieldCanBeLocal")
private final long MAX_INTERVAL = INTERVAL_DAY_30; // 30 days

private final int ANIMATION_DURATION_MSEC = 150;

public interface TimeDateFormatter {
@NonNull String getStringTime(@NonNull Date date);
@NonNull String getStringDate(@NonNull Date date);
Expand Down Expand Up @@ -323,6 +323,14 @@ public void setInterval(long intervalMsec) {
}
}

public boolean isMinInterval() {
return _intervalMsec < MIN_INTERVAL + 1;
}

public boolean isMaxInterval() {
return _intervalMsec > MAX_INTERVAL - 1;
}

public void increaseIntervalWithAnimation() {
if (_intervalMsec > INTERVAL_DAY_7 - 1) {

Expand Down

0 comments on commit e080185

Please sign in to comment.