From 4fba9ce8ad29e7232e4aea95a5516318e5c90544 Mon Sep 17 00:00:00 2001 From: Lucas Lima Date: Wed, 16 Sep 2020 22:08:37 -0300 Subject: [PATCH] Fix lint --- .../antimine/theme/view/ThemeAdapter.kt | 41 +------------------ 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/app/src/main/java/dev/lucasnlm/antimine/theme/view/ThemeAdapter.kt b/app/src/main/java/dev/lucasnlm/antimine/theme/view/ThemeAdapter.kt index 34c065ff..5990a146 100644 --- a/app/src/main/java/dev/lucasnlm/antimine/theme/view/ThemeAdapter.kt +++ b/app/src/main/java/dev/lucasnlm/antimine/theme/view/ThemeAdapter.kt @@ -12,7 +12,6 @@ import androidx.recyclerview.widget.RecyclerView import dev.lucasnlm.antimine.R import dev.lucasnlm.antimine.common.level.models.Area import dev.lucasnlm.antimine.common.level.models.AreaPaintSettings -import dev.lucasnlm.antimine.common.level.models.Mark import dev.lucasnlm.antimine.common.level.view.AreaView import dev.lucasnlm.antimine.core.themes.model.AppTheme import dev.lucasnlm.antimine.theme.viewmodel.ThemeEvent @@ -25,45 +24,7 @@ class ThemeAdapter( ) : RecyclerView.Adapter() { private val themes: List = themeViewModel.singleState().themes - - private val minefield = listOf( - Area( - 0, 0, 0, 1, - hasMine = false, mistake = false, mark = Mark.None, isCovered = false - ), - Area( - 1, 1, 0, 0, - hasMine = true, mistake = false, mark = Mark.None, isCovered = false - ), - Area( - 2, 2, 0, 0, - hasMine = true, mistake = false, mark = Mark.None, isCovered = true - ), - Area( - 3, 0, 1, 2, - hasMine = false, mistake = false, mark = Mark.None, isCovered = false - ), - Area( - 4, 1, 1, 3, - hasMine = false, mistake = false, mark = Mark.None, isCovered = false - ), - Area( - 5, 2, 1, 3, - hasMine = true, mistake = false, mark = Mark.Flag, isCovered = true - ), - Area( - 6, 0, 2, 0, - hasMine = true, mistake = false, mark = Mark.Question, isCovered = true - ), - Area( - 7, 1, 2, 4, - hasMine = false, mistake = false, mark = Mark.None, isCovered = false - ), - Area( - 8, 2, 2, 0, - hasMine = false, mistake = false, mark = Mark.None, isCovered = true, revealed = true - ), - ) + private val minefield = ExampleField.getField() init { setHasStableIds(true)