pref: 吧内搜索自动弹出输入法

This commit is contained in:
HuanCheng65 2022-06-10 16:47:19 +08:00
parent 661bc9bbe5
commit 5a93ab5645
No known key found for this signature in database
GPG Key ID: E9031EF91A805148
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import android.view.inputmethod.EditorInfo
import android.widget.EditText import android.widget.EditText
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import butterknife.BindView import butterknife.BindView
import cn.dreamtobe.kpswitch.util.KeyboardUtil
import com.google.android.material.textfield.TextInputLayout import com.google.android.material.textfield.TextInputLayout
import com.huanchengfly.tieba.post.R import com.huanchengfly.tieba.post.R
import com.huanchengfly.tieba.post.adapters.SearchPostAdapter import com.huanchengfly.tieba.post.adapters.SearchPostAdapter
@ -63,6 +64,9 @@ class SearchPostActivity : BaseActivity() {
if (keyword != null) { if (keyword != null) {
editText.setText(keyword) editText.setText(keyword)
} }
editText.post {
KeyboardUtil.showKeyboard(editText)
}
} }
private fun initView() { private fun initView() {