From 12e21a02824205d4dc50383c7a20eacd4f2ecb53 Mon Sep 17 00:00:00 2001 From: darthpaul Date: Sun, 3 Oct 2021 15:08:14 +0100 Subject: [PATCH] Remove delete icon from checklist item --- .../pro/dialogs/NewChecklistItemDialog.kt | 7 ---- .../main/res/layout/item_add_checklist.xml | 37 ++++--------------- 2 files changed, 7 insertions(+), 37 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt index 93e1c739..290ccf65 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/dialogs/NewChecklistItemDialog.kt @@ -15,7 +15,6 @@ import com.simplemobiletools.notes.pro.R import kotlinx.android.synthetic.main.dialog_new_checklist_item.view.add_item import kotlinx.android.synthetic.main.dialog_new_checklist_item.view.checklist_holder import kotlinx.android.synthetic.main.dialog_new_checklist_item.view.dialog_holder -import kotlinx.android.synthetic.main.item_add_checklist.view.delete_item import kotlinx.android.synthetic.main.item_add_checklist.view.title_edit_text class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayList) -> Unit) { @@ -57,12 +56,6 @@ class NewChecklistItemDialog(val activity: Activity, callback: (titles: ArrayLis false } } - - val currentIndex = titles.size - delete_item.setOnClickListener { - view.checklist_holder.removeViewAt(currentIndex) - titles.removeAt(currentIndex) - } titles.add(title_edit_text) view.checklist_holder.addView(this) view.dialog_holder.post { diff --git a/app/src/main/res/layout/item_add_checklist.xml b/app/src/main/res/layout/item_add_checklist.xml index 83d60bdf..4dfd72db 100644 --- a/app/src/main/res/layout/item_add_checklist.xml +++ b/app/src/main/res/layout/item_add_checklist.xml @@ -1,32 +1,9 @@ - - - - - - - + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:maxLength="500" + android:textCursorDrawable="@null" + android:textSize="@dimen/normal_text_size" />