remove unnecessary check

This commit is contained in:
Chumva 2018-10-25 15:16:06 +03:00
parent db36d3b673
commit 520f78631b

View file

@ -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
if (window != null) {
dialog.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE) dialog.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
}
return dialog return dialog
} }