Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaoyaning committed Aug 23, 2022
2 parents eddf1be + 58073df commit 3f6505b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/src/main/java/com/jyn/composecalculator/DateViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ data class Date(var time: String, var input: String, var result: String)
class DateViewModel(application: Application) : AndroidViewModel(application) {
var textBoxHeight = 0.dp
var results = mutableListOf<Date>().apply {
add(Date(getNow(), "1+1", "2"))
add(Date(getNow(), "211111+1", "21111112"))
add(Date(getNow(), "311111+1", "31111112"))
add(Date(getNow(), "411111+1", "41111112"))
add(Date(getNow(), "511111+1", "51111112"))
add(Date(getNow(), "611111+1", "61111112"))
add(Date(getNow(), "711111+1", "71111112"))
add(Date(getNow(), "24+32", "56"))
add(Date(getNow(), "32+24", "56"))
add(Date(getNow(), "32+24-6", "50"))
add(Date(getNow(), "63+58", "121"))
add(Date(getNow(), "396÷3", "132"))
add(Date(getNow(), "123×3", "369"))
add(Date(getNow(), "640×30", "19200"))
}
var inputText = mutableStateOf("")
var resultText = mutableStateOf("")
Expand Down

0 comments on commit 3f6505b

Please sign in to comment.