Replace concat() call with +
Such calls can be replaced with the '+' operator for increased code clarity and possible increased performance if the method was invoked on a constant with a constant argument.
This commit is contained in:
parent
ca60148431
commit
650b6b2362
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ public class SeekBarPreference extends DialogPreference implements
|
|||
public void onProgressChanged(final SeekBar seek, final int value,
|
||||
final boolean fromTouch) {
|
||||
final String t = String.valueOf(value);
|
||||
valueTextView.setText(valueText == null ? t : t.concat(valueText));
|
||||
valueTextView.setText(valueText == null ? t : t + valueText);
|
||||
valueToSave = value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue