Merge pull request #1580 from lioncash/android

InputConfigFragment: Use a StringBuilder for string concatenation
This commit is contained in:
Lioncash 2014-11-20 11:19:35 -05:00
commit 6d0faced59
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}
}
}