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