remove getView from functional timer and add when in sessionRoute

This commit is contained in:
Lukas Barragan Torres 2023-04-26 11:05:08 +02:00
parent 4996d387ad
commit c3a9826001
6 changed files with 17 additions and 20 deletions

View file

@ -19,8 +19,4 @@ class FunctionalCustomTimer(studyTime: Int) : FunctionalTimer(studyTime) {
return hasEnded()
}
override fun getView(): AbstractSessionScreen {
return CustomSessionScreen(this)
}
}

View file

@ -16,8 +16,4 @@ class FunctionalEndlessTimer : FunctionalTimer(0) {
override fun tick() {
time.plusOne()
}
override fun getView(): AbstractSessionScreen {
return EndlessSessionScreen()
}
}

View file

@ -39,8 +39,4 @@ class FunctionalPomodoroTimer(
override fun hasCurrentCountdownEnded(): Boolean {
return time.time == 0
}
override fun getView(): AbstractSessionScreen {
return BreakSessionScreen(this)
}
}

View file

@ -13,7 +13,4 @@ abstract class FunctionalTimer(initialValue: Int) {
abstract fun hasEnded(): Boolean
abstract fun hasCurrentCountdownEnded(): Boolean
abstract fun getView(): AbstractSessionScreen
}