Fix ktlint
This commit is contained in:
parent
af6e0119f3
commit
27cba41510
3 changed files with 7 additions and 5 deletions
|
@ -22,7 +22,7 @@ class ControlDialogFragment : AppCompatDialogFragment() {
|
|||
@Inject
|
||||
lateinit var preferencesRepository: IPreferencesRepository
|
||||
|
||||
private val controlViewModel by activityViewModels<ControlViewModel>()
|
||||
private val controlViewModel by activityViewModels<ControlViewModel>()
|
||||
private val adapter by lazy { ControlListAdapter(controlViewModel) }
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
|
|
@ -49,13 +49,16 @@ class CustomLevelDialogFragment : AppCompatDialogFragment() {
|
|||
val mapHeight: TextView? = dialog?.findViewById(R.id.map_height)
|
||||
val mapMines: TextView? = dialog?.findViewById(R.id.map_mines)
|
||||
|
||||
var width = filterInput(mapWidth?.text.toString(),
|
||||
var width = filterInput(
|
||||
mapWidth?.text.toString(),
|
||||
MIN_WIDTH
|
||||
)
|
||||
var height = filterInput(mapHeight?.text.toString(),
|
||||
var height = filterInput(
|
||||
mapHeight?.text.toString(),
|
||||
MIN_HEIGHT
|
||||
)
|
||||
var mines = filterInput(mapMines?.text.toString(),
|
||||
var mines = filterInput(
|
||||
mapMines?.text.toString(),
|
||||
MIN_MINES
|
||||
)
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.view.LayoutInflater
|
|||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.view.WindowManager
|
||||
import androidx.activity.viewModels
|
||||
import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.activityViewModels
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
|
Loading…
Reference in a new issue