pref: 吧内搜索自动弹出输入法
This commit is contained in:
parent
661bc9bbe5
commit
5a93ab5645
|
|
@ -7,6 +7,7 @@ import android.view.inputmethod.EditorInfo
|
|||
import android.widget.EditText
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import butterknife.BindView
|
||||
import cn.dreamtobe.kpswitch.util.KeyboardUtil
|
||||
import com.google.android.material.textfield.TextInputLayout
|
||||
import com.huanchengfly.tieba.post.R
|
||||
import com.huanchengfly.tieba.post.adapters.SearchPostAdapter
|
||||
|
|
@ -63,6 +64,9 @@ class SearchPostActivity : BaseActivity() {
|
|||
if (keyword != null) {
|
||||
editText.setText(keyword)
|
||||
}
|
||||
editText.post {
|
||||
KeyboardUtil.showKeyboard(editText)
|
||||
}
|
||||
}
|
||||
|
||||
private fun initView() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue