File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
kotlin/com/simplemobiletools/notes/fragments Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package com.simplemobiletools.notes.fragments
33import android.annotation.SuppressLint
44import android.graphics.Typeface
55import android.os.Bundle
6- import androidx.fragment.app.Fragment
76import android.text.Editable
87import android.text.Selection
98import android.text.TextWatcher
@@ -89,6 +88,11 @@ class NoteFragment : androidx.fragment.app.Fragment() {
8988 setText(fileContents)
9089 }
9190 skipTextUpdating = false
91+
92+ if (config.showKeyboard) {
93+ requestFocus()
94+ }
95+
9296 setSelection(if (config.placeCursorToEnd) text.length else 0 )
9397 }
9498 }
Original file line number Diff line number Diff line change 66 android : layout_height =" match_parent"
77 android : orientation =" vertical"
88 android : paddingLeft =" @dimen/activity_margin"
9- android : paddingRight =" @dimen/activity_margin"
10- android : paddingTop =" @dimen/activity_margin" >
9+ android : paddingTop =" @dimen/activity_margin"
10+ android : paddingRight =" @dimen/activity_margin" >
1111
1212 <com .simplemobiletools.commons.views.MyEditText
1313 android : id =" @+id/note_name"
1717 android : inputType =" textCapSentences"
1818 android : textCursorDrawable =" @null"
1919 android : textSize =" @dimen/normal_text_size" />
20+
2021</LinearLayout >
You can’t perform that action at this time.
0 commit comments