InputConfigFragment: Use a StringBuilder for string concatenation
This is the recommended way to join strings, since it doesn't destroy and recreate the string repeatedly.
This commit is contained in:
parent
da962a3d2b
commit
feb038bec3
|
@ -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