Compare commits
1 Commits
c5410bee9f
...
7ba58cadd3
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ba58cadd3 |
@@ -299,7 +299,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val qtyET = dialogView.findViewById<EditText>(R.id.notes_qty_edittext)
|
val qtyET = dialogView.findViewById<EditText>(R.id.notes_qty_edittext)
|
||||||
|
|
||||||
val nextTextView = dialogView.findViewById<TextView>(R.id.notes_template_next)
|
val nextTextView = dialogView.findViewById<TextView>(R.id.notes_template_next)
|
||||||
val clearTextView = dialogView.findViewById<TextView>(R.id.notes_clear)
|
|
||||||
val prevTextView = dialogView.findViewById<TextView>(R.id.notes_template_prev)
|
val prevTextView = dialogView.findViewById<TextView>(R.id.notes_template_prev)
|
||||||
|
|
||||||
fun updateContent(current: LunaEvent) {
|
fun updateContent(current: LunaEvent) {
|
||||||
@@ -323,6 +322,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
} else {
|
} else {
|
||||||
nextTextView.setOnClickListener {}
|
nextTextView.setOnClickListener {}
|
||||||
nextTextView.alpha = 0.5f
|
nextTextView.alpha = 0.5f
|
||||||
|
|
||||||
|
// clear fields
|
||||||
|
notesET.setText("")
|
||||||
|
if (useQuantity) {
|
||||||
|
qtyET.setText("")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prevEvent != null) {
|
if (prevEvent != null) {
|
||||||
@@ -340,14 +345,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clearTextView.setOnClickListener {
|
|
||||||
notesET.setText("")
|
|
||||||
if (useQuantity) {
|
|
||||||
qtyET.setText("")
|
|
||||||
}
|
|
||||||
updateContent(lunaEvent)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!useQuantity) {
|
if (!useQuantity) {
|
||||||
qtyET.visibility = View.GONE
|
qtyET.visibility = View.GONE
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,13 +37,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="18dp"
|
android:textSize="18dp"
|
||||||
android:text="⬅️"/>
|
android:text="⬅️"/>
|
||||||
<TextView
|
|
||||||
android:id="@+id/notes_clear"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginHorizontal="5dp"
|
|
||||||
android:textSize="18dp"
|
|
||||||
android:text="🚫"/>
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/notes_template_next"
|
android:id="@+id/notes_template_next"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user