Better Query display name

od
Laurent 6 years ago
parent ea99385835
commit 81bf2ba6ff
  1. 2
      app/src/main/java/net/pokeranalytics/android/model/filter/Query.kt

@ -52,7 +52,7 @@ class Query {
fun getName(context: Context): String { fun getName(context: Context): String {
return when (this._conditions.size) { return when (this._conditions.size) {
0 -> context.getString(R.string.all_sessions) // @todo should be dependant of the underlying type, ie. Session, Transaction... 0 -> context.getString(R.string.all_sessions) // @todo should be dependant of the underlying type, ie. Session, Transaction...
else -> this._conditions.joinToString(" : ") { it.getDisplayName(context) } else -> this._conditions.joinToString(" + ") { it.getDisplayName(context) }
} }
} }

Loading…
Cancel
Save