Allow monitoring current upstreams

Fix #139.
This commit is contained in:
Mygod
2020-01-20 10:02:26 +08:00
parent 59b4a464b0
commit cce3223311
5 changed files with 74 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ class ClientsFragment : Fragment() {
data class StatsArg(val title: CharSequence, val stats: ClientStats) : Parcelable
class StatsDialogFragment : AlertDialogFragment<StatsArg, Empty>() {
override fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener) {
setTitle(SpanFormatter.format(getString(R.string.clients_stats_title), arg.title))
setTitle(SpanFormatter.format(getText(R.string.clients_stats_title), arg.title))
val context = context
val resources = resources
val format = NumberFormat.getIntegerInstance(resources.configuration.locale)