Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cfe4e73 authored by tibbi's avatar tibbi
Browse files

fix keyboard not showing up at dialogs on Android Pie

parent ab290073
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 21
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '5.1.0'
        propVersionName = '5.1.1'
        kotlin_version = '1.2.71'
    }

+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import androidx.appcompat.app.AlertDialog
fun AlertDialog.showKeyboard(editText: EditText) {
    window!!.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE)
    editText.apply {
        requestFocus()
        onGlobalLayout {
            setSelection(text.toString().length)
        }