Remove unnecessary Integer.toString() calls (#2959)

In cases where an integer is directly concatenated onto a string, toString() is not needed because it is called implicitly; this patch removes the calls to improve code readability.
This commit is contained in:
Dan Garry 2019-05-19 14:24:53 +02:00 committed by Josephine Lim
parent 877c669297
commit b176515153
2 changed files with 5 additions and 5 deletions

View file

@ -356,7 +356,7 @@ public class AchievementsActivity extends NavigationBaseActivity {
(achievements.getUniqueUsedImages() + "/" + levelInfo.getMaxUniqueImages());
imagesFeatured.setText(String.valueOf(achievements.getFeaturedImages()));
String levelUpInfoString = getString(R.string.level);
levelUpInfoString += " " + Integer.toString(levelInfo.getLevelNumber());
levelUpInfoString += " " + levelInfo.getLevelNumber();
levelNumber.setText(levelUpInfoString);
imageView.setImageDrawable(VectorDrawableCompat.create(getResources(), R.drawable.badge,
new ContextThemeWrapper(this, levelInfo.getLevelStyle()).getTheme()));