default of custom timer is 1 hour
This commit is contained in:
		
							parent
							
								
									4fa7f97513
								
							
						
					
					
						commit
						5992abf9c7
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -5,6 +5,7 @@ import androidx.compose.runtime.getValue | |||
| import androidx.compose.runtime.mutableStateOf | ||||
| import androidx.compose.runtime.remember | ||||
| import be.ugent.sel.studeez.data.SelectedTimerState | ||||
| import be.ugent.sel.studeez.data.local.models.timer_functional.HoursMinutesSeconds | ||||
| import be.ugent.sel.studeez.data.local.models.timer_info.TimerInfo | ||||
| import be.ugent.sel.studeez.domain.LogService | ||||
| import be.ugent.sel.studeez.domain.TimerDAO | ||||
|  | @ -21,7 +22,9 @@ class TimerSelectionViewModel @Inject constructor( | |||
|     logService: LogService | ||||
| ) : StudeezViewModel(logService) { | ||||
| 
 | ||||
|     var customTimerStudyTime: MutableState<Int> = mutableStateOf(0) | ||||
|     var customTimerStudyTime: MutableState<Int> = mutableStateOf( | ||||
|         HoursMinutesSeconds(1, 0, 0).getTotalSeconds() | ||||
|     ) | ||||
| 
 | ||||
|     fun getAllTimers() : Flow<List<TimerInfo>> { | ||||
|         return timerDAO.getAllTimers() | ||||
|  |  | |||
		Reference in a new issue
	
	 Lukas Barragan Torres
						Lukas Barragan Torres