Implement concise view for timer

- implement EditTimerDialog
- adding a new timer would show the dialog
- clicking on a timer item would show the dialog
This commit is contained in:
Paul Akhamiogu
2021-09-07 15:24:21 +01:00
parent bd05a41b35
commit e1357ecd8f
10 changed files with 330 additions and 239 deletions

View File

@ -5,13 +5,13 @@ import androidx.room.PrimaryKey
@Entity(tableName = "timers")
data class Timer(
@PrimaryKey(autoGenerate = true) val id: Long?,
val seconds: Int,
@PrimaryKey(autoGenerate = true) var id: Long?,
var seconds: Int,
val state: TimerState,
val vibrate: Boolean,
val soundUri: String,
val soundTitle: String,
val label: String,
val createdAt: Long,
val channelId: String? = null,
var vibrate: Boolean,
var soundUri: String,
var soundTitle: String,
var label: String,
var createdAt: Long,
var channelId: String? = null,
)