File tree Expand file tree Collapse file tree
kotlin/com/simplemobiletools/notes/fragments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,14 +135,11 @@ class NoteFragment : Fragment() {
135135 }
136136
137137 private fun removeTextWatcher () {
138- // Avoid memory leak
139138 view.notes_view.removeTextChangedListener(textWatcher)
140139 }
141140
142141 private fun setWordCounter (text : Editable ) {
143- // Replace new lines with space
144142 val wordArray = text.toString().replace(" \n " , " " ).split(" " )
145- // Count only items which are not empty
146143 notes_counter.text = wordArray.count { it.isNotEmpty() }.toString()
147144 }
148145
Original file line number Diff line number Diff line change 1313
1414 <RelativeLayout
1515 android : layout_width =" match_parent"
16+ android : id =" @+id/notes_relativelayout"
1617 android : layout_height =" wrap_content" >
1718
1819 <com .simplemobiletools.commons.views.MyEditText
3132 android : layout_width =" wrap_content"
3233 android : layout_height =" wrap_content"
3334 android : textStyle =" italic"
34- android : text =" 123 "
35+ android : text =" "
3536 android : padding =" 5dp"
3637 android : layout_alignParentBottom =" true"
3738 android : layout_alignParentEnd =" true"
You can’t perform that action at this time.
0 commit comments