fix #70, do not trim the text before saving

This commit is contained in:
tibbi 2017-03-06 19:31:42 +01:00
parent 9712fe249d
commit 01a6067f96

View File

@ -8,7 +8,6 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import com.simplemobiletools.commons.extensions.value
import com.simplemobiletools.notes.R
import com.simplemobiletools.notes.extensions.config
import com.simplemobiletools.notes.extensions.getTextGravity
@ -34,7 +33,7 @@ class NoteFragment : Fragment() {
}
fun saveText() {
val newText = view.notes_view.value
val newText = view.notes_view.text.toString()
val oldText = note.value
if (newText != oldText) {
note.value = newText