|
|
|
|
@ -1,6 +1,5 @@ |
|
|
|
|
package net.pokeranalytics.android.model.realm |
|
|
|
|
|
|
|
|
|
import android.text.InputType |
|
|
|
|
import io.realm.RealmObject |
|
|
|
|
import io.realm.annotations.PrimaryKey |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.CountableUsage |
|
|
|
|
@ -10,6 +9,7 @@ import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentableEditDescriptor |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.SimpleRow |
|
|
|
|
import net.pokeranalytics.android.ui.view.rowrepresentable.TournamentFeatureRow |
|
|
|
|
import net.pokeranalytics.android.util.NULL_TEXT |
|
|
|
|
import java.util.* |
|
|
|
|
import kotlin.collections.ArrayList |
|
|
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ open class TournamentFeature : RealmObject(), Manageable, StaticRowRepresentable |
|
|
|
|
|
|
|
|
|
override fun stringForRow(row: RowRepresentable): String { |
|
|
|
|
return when (row) { |
|
|
|
|
SimpleRow.NAME -> this.name |
|
|
|
|
SimpleRow.NAME -> if (this.name.isNotEmpty()) this.name else NULL_TEXT |
|
|
|
|
else -> return super.stringForRow(row) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|