|
|
|
@ -10,12 +10,13 @@ import io.realm.Realm |
|
|
|
import io.realm.RealmObject |
|
|
|
import io.realm.RealmObject |
|
|
|
import kotlinx.android.synthetic.main.fragment_new_session.* |
|
|
|
import kotlinx.android.synthetic.main.fragment_new_session.* |
|
|
|
import net.pokeranalytics.android.R |
|
|
|
import net.pokeranalytics.android.R |
|
|
|
import net.pokeranalytics.android.ui.adapter.components.* |
|
|
|
import net.pokeranalytics.android.ui.adapter.components.DynamicRowCallback |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.adapter.components.DynamicRowInterface |
|
|
|
|
|
|
|
import net.pokeranalytics.android.ui.adapter.components.SettingRow |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetDelegate |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetDelegate |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.BottomSheetFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
import net.pokeranalytics.android.ui.fragment.components.PokerAnalyticsFragment |
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
|
import java.util.UUID.randomUUID |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class EditableDataFragment : PokerAnalyticsFragment(), DynamicRowCallback, BottomSheetDelegate { |
|
|
|
class EditableDataFragment : PokerAnalyticsFragment(), DynamicRowCallback, BottomSheetDelegate { |
|
|
|
|
|
|
|
|
|
|
|
@ -80,7 +81,8 @@ class EditableDataFragment : PokerAnalyticsFragment(), DynamicRowCallback, Botto |
|
|
|
} |
|
|
|
} |
|
|
|
realm.commitTransaction() |
|
|
|
realm.commitTransaction() |
|
|
|
|
|
|
|
|
|
|
|
val dynamicListAdapter = DynamicListAdapter((this.item as DynamicRowDelegate), this) |
|
|
|
//TODO: Crash happens here |
|
|
|
this.recyclerView.adapter = dynamicListAdapter |
|
|
|
//val dynamicListAdapter = DynamicListAdapter((this.item as DynamicRowDelegate), this) |
|
|
|
|
|
|
|
//this.recyclerView.adapter = dynamicListAdapter |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |