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