remove getView from functional timer and add when in sessionRoute
This commit is contained in:
parent
4996d387ad
commit
c3a9826001
6 changed files with 17 additions and 20 deletions
|
@ -19,8 +19,4 @@ class FunctionalCustomTimer(studyTime: Int) : FunctionalTimer(studyTime) {
|
|||
return hasEnded()
|
||||
}
|
||||
|
||||
override fun getView(): AbstractSessionScreen {
|
||||
return CustomSessionScreen(this)
|
||||
}
|
||||
|
||||
}
|
|
@ -16,8 +16,4 @@ class FunctionalEndlessTimer : FunctionalTimer(0) {
|
|||
override fun tick() {
|
||||
time.plusOne()
|
||||
}
|
||||
|
||||
override fun getView(): AbstractSessionScreen {
|
||||
return EndlessSessionScreen()
|
||||
}
|
||||
}
|
|
@ -39,8 +39,4 @@ class FunctionalPomodoroTimer(
|
|||
override fun hasCurrentCountdownEnded(): Boolean {
|
||||
return time.time == 0
|
||||
}
|
||||
|
||||
override fun getView(): AbstractSessionScreen {
|
||||
return BreakSessionScreen(this)
|
||||
}
|
||||
}
|
|
@ -13,7 +13,4 @@ abstract class FunctionalTimer(initialValue: Int) {
|
|||
abstract fun hasEnded(): Boolean
|
||||
|
||||
abstract fun hasCurrentCountdownEnded(): Boolean
|
||||
|
||||
abstract fun getView(): AbstractSessionScreen
|
||||
|
||||
}
|
Reference in a new issue