Fix ktlint

This commit is contained in:
Lucas Lima 2020-06-27 20:38:14 -03:00
parent af6e0119f3
commit 27cba41510
No known key found for this signature in database
GPG key ID: 0259A3F43EC1027A
3 changed files with 7 additions and 5 deletions

View file

@ -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?) {

View file

@ -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
)

View file

@ -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