1 Commits

Author SHA1 Message Date
9ed9964f69 notes: do not update quantity
Only update the text when switching
between other texts via the arrows buttons.
2026-06-12 10:59:27 +02:00

View File

@@ -695,9 +695,6 @@ class MainActivity : AppCompatActivity() {
var nextEvent = getNextSameEvent(current, templates)
notesET.setText(current.notes)
if (useQuantity) {
qtyET.setText(current.quantity.toString())
}
if (nextEvent == null && current != event) {
nextEvent = event
@@ -706,9 +703,6 @@ class MainActivity : AppCompatActivity() {
if (nextEvent != null) {
nextTextView.setOnClickListener {
notesET.setText(nextEvent.notes)
if (useQuantity) {
qtyET.setText(nextEvent.quantity.toString())
}
updateContent(nextEvent)
}
nextTextView.alpha = 1.0f
@@ -720,9 +714,6 @@ class MainActivity : AppCompatActivity() {
if (prevEvent != null) {
prevTextView.setOnClickListener {
notesET.setText(prevEvent.notes)
if (useQuantity) {
qtyET.setText(prevEvent.quantity.toString())
}
updateContent(prevEvent)
}
prevTextView.alpha = 1.0f