1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-29 11:10:35 +02:00

Add new line in appendDiffValue

so that it's only added when needed (i.e. when there are a diff value).
This commit is contained in:
Erik Johansson
2018-02-08 21:46:21 +01:00
parent 11be8a7c85
commit 9d9611ac72
2 changed files with 1 additions and 1 deletions

View File

@@ -494,7 +494,6 @@ public class TableFragment extends Fragment implements FragmentUpdateListener {
SpannableStringBuilder string = new SpannableStringBuilder(); SpannableStringBuilder string = new SpannableStringBuilder();
string.append(visibleMeasurements.get(i).getValueAsString()); string.append(visibleMeasurements.get(i).getValueAsString());
string.append("\n");
visibleMeasurements.get(i).appendDiffValue(string); visibleMeasurements.get(i).appendDiffValue(string);
stringCache[position][i] = string; stringCache[position][i] = string;

View File

@@ -286,6 +286,7 @@ public abstract class FloatMeasurementView extends MeasurementView {
color = Color.GRAY; color = Color.GRAY;
} }
text.append('\n');
int start = text.length(); int start = text.length();
text.append(symbol); text.append(symbol);
text.setSpan(new ForegroundColorSpan(color), start, text.length(), text.setSpan(new ForegroundColorSpan(color), start, text.length(),