|
|
|
@ -1,5 +1,7 @@ |
|
|
|
package net.pokeranalytics.android.ui.fragment.components.bottomsheet |
|
|
|
package net.pokeranalytics.android.ui.fragment.components.bottomsheet |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.annotation.SuppressLint |
|
|
|
|
|
|
|
import android.app.Dialog |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import android.view.LayoutInflater |
|
|
|
import android.view.LayoutInflater |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
@ -74,11 +76,10 @@ open class BottomSheetFragment : BottomSheetDialogFragment() { |
|
|
|
initUI() |
|
|
|
initUI() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onActivityCreated(savedInstanceState: Bundle?) { |
|
|
|
@SuppressLint("RestrictedApi") |
|
|
|
super.onActivityCreated(savedInstanceState) |
|
|
|
override fun setupDialog(dialog: Dialog?, style: Int) { |
|
|
|
|
|
|
|
super.setupDialog(dialog, style) |
|
|
|
// To display correctly the keyboard |
|
|
|
dialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) |
|
|
|
dialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|