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:
@@ -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;
|
||||||
|
@@ -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(),
|
||||||
|
Reference in New Issue
Block a user