|
|
|
|
@ -4,7 +4,6 @@ import android.os.Bundle |
|
|
|
|
import android.view.LayoutInflater |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import androidx.core.view.isVisible |
|
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager |
|
|
|
|
import io.realm.Realm |
|
|
|
|
import kotlinx.android.synthetic.main.fragment_report_creation.* |
|
|
|
|
@ -69,7 +68,7 @@ class ReportCreationFragment : RealmFragment(), RowRepresentableDataSource, RowR |
|
|
|
|
|
|
|
|
|
private fun updateUIWithCurrentStep() { |
|
|
|
|
|
|
|
|
|
this.next.isVisible = this.assistant.nextButtonShouldAppear |
|
|
|
|
this.next.visibility = if (this.assistant.nextButtonShouldAppear) View.VISIBLE else View.GONE |
|
|
|
|
this.next.text = requireContext().getString(this.assistant.nextButtonTitleResId) |
|
|
|
|
this.next.isEnabled = this.assistant.nextEnabled |
|
|
|
|
|
|
|
|
|
@ -242,7 +241,12 @@ class Assistant { |
|
|
|
|
Calculator.Options.Display.EVOLUTION, |
|
|
|
|
Calculator.Options.Display.COMPARISON |
|
|
|
|
) |
|
|
|
|
Step.STAT -> Stat.userSelectableList |
|
|
|
|
Step.STAT -> { |
|
|
|
|
when (this.display) { |
|
|
|
|
Calculator.Options.Display.EVOLUTION -> Stat.evolutionValuesList |
|
|
|
|
else -> Stat.userSelectableList |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Step.COMPARATOR -> Criteria.all |
|
|
|
|
Step.FILTER -> { |
|
|
|
|
val realm = Realm.getDefaultInstance() |
|
|
|
|
|