Skip to content

Commit

Permalink
fix: experimental test name
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Jul 1, 2024
1 parent 10016f9 commit b34e799
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void applyUIChanges(RunTestService service) {
binding.eta.setText(R.string.Dashboard_Running_CalculatingETA);
}

if (Objects.equals(service.task.currentTest.getLabelResId(),R.string.Test_Experimental_Fullname)) {
if (Objects.equals(service.task.currentSuite.getName(),OONITests.EXPERIMENTAL.getLabel())) {
binding.name.setText(service.task.currentTest.getName());
} else {
binding.name.setText(getString(service.task.currentTest.getLabelResId()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ class ResultDetailExpandableListAdapter(
else -> {
val groupMeasurement = (items[groupPosition] as MeasurementGroup)

val groupTitle = root.findViewById<TextView>(R.id.text)

groupMeasurement.measurements.firstOrNull()?.let {
root.findViewById<TextView>(R.id.text).setText(it.getTest().labelResId)
when (it.getTest().labelResId){
R.string.Test_Experimental_Fullname -> groupTitle.text = groupMeasurement.title
else -> groupTitle.setText(it.getTest().labelResId)
}
} ?: run {
root.findViewById<TextView>(R.id.text).text = groupMeasurement.title
groupTitle.text = groupMeasurement.title
}
root.findViewById<TextView>(R.id.indicator).apply {
visibility = View.VISIBLE
Expand Down

0 comments on commit b34e799

Please sign in to comment.