remove unnecessary check
This commit is contained in:
parent
db36d3b673
commit
520f78631b
1 changed files with 1 additions and 4 deletions
|
@ -34,10 +34,7 @@ class AddNewDeviceBottomSheet : BaseDialogFragment() {
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
val dialog = BottomSheetDialog(context!!)
|
val dialog = BottomSheetDialog(context!!)
|
||||||
val window = dialog.window
|
dialog.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
|
||||||
if (window != null) {
|
|
||||||
dialog.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
|
|
||||||
}
|
|
||||||
return dialog
|
return dialog
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue