mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Convert Repetition to Kotlin
This commit is contained in:
@@ -158,9 +158,9 @@ public class HistoryChart extends ScrollableChart
|
||||
if (offset < checkmarks.length)
|
||||
{
|
||||
if(skipsEnabled)
|
||||
newValue = Repetition.nextToggleValueWithSkip(checkmarks[offset]);
|
||||
newValue = Checkmark.Companion.nextToggleValueWithSkip(checkmarks[offset]);
|
||||
else
|
||||
newValue = Repetition.nextToggleValueWithoutSkip(checkmarks[offset]);
|
||||
newValue = Checkmark.Companion.nextToggleValueWithoutSkip(checkmarks[offset]);
|
||||
}
|
||||
|
||||
onToggleCheckmarkListener.onToggleCheckmark(timestamp, newValue);
|
||||
|
||||
@@ -66,9 +66,9 @@ class CheckmarkButtonView(
|
||||
|
||||
fun performToggle() {
|
||||
value = if(preferences.isSkipEnabled) {
|
||||
Repetition.nextToggleValueWithSkip(value)
|
||||
Checkmark.nextToggleValueWithSkip(value)
|
||||
} else {
|
||||
Repetition.nextToggleValueWithoutSkip(value)
|
||||
Checkmark.nextToggleValueWithoutSkip(value)
|
||||
}
|
||||
onToggle(value)
|
||||
performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
|
||||
|
||||
Reference in New Issue
Block a user