Merge pull request #1580 from lioncash/android
InputConfigFragment: Use a StringBuilder for string concatenation
This commit is contained in:
commit
6d0faced59
|
@ -91,12 +91,12 @@ public final class InputConfigFragment extends PreferenceFragment
|
|||
else
|
||||
{
|
||||
List<InputDevice.MotionRange> motions = input.getMotionRanges();
|
||||
String fakeid = "";
|
||||
StringBuilder fakeid = new StringBuilder();
|
||||
|
||||
for (InputDevice.MotionRange range : motions)
|
||||
fakeid += range.getAxis();
|
||||
fakeid.append(range.getAxis());
|
||||
|
||||
return fakeid;
|
||||
return fakeid.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue