diff --git a/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt b/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt index ae1f00c..f3a8184 100644 --- a/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt +++ b/app/src/main/kotlin/jackall/moncalc/viewmodel/OverlayRegistViewModel.kt @@ -37,10 +37,6 @@ val gradeSpinnerAdapter = CustomSpinnerAdapter(context, monstDataRealmHelper.findNames(Grade::class.java)) val registAdapter = RegistAdapter(context, arrayListOf(RegistItemViewModel(fruitSpinnerAdapter, gradeSpinnerAdapter))) - init { - println("さいずは${monstDataRealmHelper.findNames(Fruit::class.java).size}") - } - fun onClickAdd(view: View) { registAdapter.add(RegistItemViewModel(fruitSpinnerAdapter, gradeSpinnerAdapter)) } @@ -87,12 +83,8 @@ @JvmStatic @BindingAdapter("android:setRecyclerAdapter") fun setAdapter(recyclerView: RecyclerView, registAdapter: RegistAdapter?) { - if (registAdapter == null) { - println("ぬるやでなあ") - } recyclerView.layoutManager = LinearLayoutManager(App.instance) recyclerView.adapter = registAdapter - println("ここまできた") } } } \ No newline at end of file