Compare commits
1 Commits
f37089d96a
...
c5188e4df9
| Author | SHA1 | Date | |
|---|---|---|---|
| c5188e4df9 |
@@ -315,9 +315,7 @@ class MainActivity : AppCompatActivity() {
|
||||
nextTextView.visibility = View.VISIBLE
|
||||
nextTextView.setOnClickListener {
|
||||
notesET.setText(nextEvent.notes)
|
||||
if (useQuantity) {
|
||||
qtyET.setText(nextEvent.quantity.toString())
|
||||
}
|
||||
update(nextEvent)
|
||||
}
|
||||
} else {
|
||||
@@ -328,9 +326,7 @@ class MainActivity : AppCompatActivity() {
|
||||
prevTextView.visibility = View.VISIBLE
|
||||
prevTextView.setOnClickListener {
|
||||
notesET.setText(prevEvent.notes)
|
||||
if (useQuantity) {
|
||||
qtyET.setText(prevEvent.quantity.toString())
|
||||
}
|
||||
update(prevEvent)
|
||||
}
|
||||
} else {
|
||||
@@ -342,10 +338,8 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
clearTextView.setOnClickListener {
|
||||
notesET.setText("")
|
||||
if (useQuantity) {
|
||||
qtyET.setText("")
|
||||
}
|
||||
}
|
||||
|
||||
if (!useQuantity) {
|
||||
qtyET.visibility = View.GONE
|
||||
|
||||
Reference in New Issue
Block a user