|
|
|
@ -1,14 +1,12 @@ |
|
|
|
package net.pokeranalytics.android.ui.adapter |
|
|
|
package net.pokeranalytics.android.ui.adapter |
|
|
|
|
|
|
|
|
|
|
|
import android.app.Activity |
|
|
|
import android.app.Activity |
|
|
|
import android.content.Context |
|
|
|
|
|
|
|
import android.content.res.ColorStateList |
|
|
|
import android.content.res.ColorStateList |
|
|
|
import android.text.InputType |
|
|
|
import android.text.InputType |
|
|
|
import android.view.LayoutInflater |
|
|
|
import android.view.LayoutInflater |
|
|
|
import android.view.MotionEvent |
|
|
|
import android.view.MotionEvent |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import android.view.ViewGroup |
|
|
|
import android.view.ViewGroup |
|
|
|
import android.view.inputmethod.InputMethodManager |
|
|
|
|
|
|
|
import android.widget.Button |
|
|
|
import android.widget.Button |
|
|
|
import android.widget.EditText |
|
|
|
import android.widget.EditText |
|
|
|
import androidx.recyclerview.widget.RecyclerView |
|
|
|
import androidx.recyclerview.widget.RecyclerView |
|
|
|
@ -224,11 +222,13 @@ class HandHistoryAdapter( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun requestFocusAndShowKeyboard(editText: EditText) { |
|
|
|
private fun requestFocusAndShowKeyboard(editText: EditText) { |
|
|
|
editText.requestFocus() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (editText.requestFocus()) { |
|
|
|
if (editText.requestFocus()) { |
|
|
|
val imm = itemView.context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager |
|
|
|
// val imm = itemView.context.getSystemService(InputMethodManager::class.java) |
|
|
|
imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0) |
|
|
|
// imm.toggleSoftInput(0, InputMethodManager.HIDE_IMPLICIT_ONLY) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// val imm = itemView.context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager |
|
|
|
|
|
|
|
// imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0) |
|
|
|
// imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT) |
|
|
|
// imm.showSoftInput(editText, InputMethodManager.SHOW_IMPLICIT) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|