Skip to content

Commit

Permalink
NF: _updateCutoff is public
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur-Milchior authored and mikehardy committed Aug 28, 2020
1 parent d2f5db0 commit d7e70f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public abstract class AbstractSched {
*/
public abstract void reset();

public abstract void _updateCutoff();
/** Ensure that the question on the potential next card can be accessed quickly.
*/
public abstract void preloadNextCard();
Expand Down
2 changes: 1 addition & 1 deletion AnkiDroid/src/main/java/com/ichi2/libanki/sched/Sched.java
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ private boolean _resched(Card card) {
*/

@Override
protected void _updateCutoff() {
public void _updateCutoff() {
Integer oldToday = mToday;
// days since col created
mToday = (int) ((getTime().intTime() - mCol.getCrt()) / SECONDS_PER_DAY);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ private int _previewDelay(Card card) {
*/

/* Overriden: other way to count time*/
protected void _updateCutoff() {
public void _updateCutoff() {
Integer oldToday = mToday == null ? 0 : mToday;
// days since col created
mToday = _daysSinceCreation();
Expand Down

0 comments on commit d7e70f6

Please sign in to comment.