|
|
@@ -1,9 +1,10 @@
|
|
|
package com.sirekanyan.knigopis.common.extensions
|
|
|
|
|
|
import android.app.Activity
|
|
|
+import android.view.View
|
|
|
|
|
|
-fun Activity.showKeyboard() {
|
|
|
- currentFocus?.let { view ->
|
|
|
+fun Activity.showKeyboard(view: View) {
|
|
|
+ if (view.requestFocus()) {
|
|
|
systemInputMethodManager.showSoftInput(view, 0)
|
|
|
}
|
|
|
}
|