Skip to content

Commit df1cd56

Browse files
fix: keyboard hiding cursor on startup
1 parent 7939ce5 commit df1cd56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/kotlin/org/fossify/notes/activities/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import android.util.TypedValue
2323
import android.view.ActionMode
2424
import android.view.Gravity
2525
import android.view.MenuItem
26+
import android.view.WindowManager
2627
import android.view.inputmethod.EditorInfo
2728
import android.webkit.WebResourceRequest
2829
import android.webkit.WebView
@@ -549,6 +550,7 @@ class MainActivity : SimpleActivity() {
549550
}
550551

551552
private fun initViewPager(wantedNoteId: Long? = null) {
553+
window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE or WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN)
552554
NotesHelper(this).getNotes { notes ->
553555
notes.filter { it.shouldBeUnlocked(this) }
554556
.forEach(::removeProtection)

0 commit comments

Comments
 (0)