Replace some Integer.valueOf calls with Integer.parseInt in ConfigureFragment.java. Boxing to an Integer isn't necessary here.

This commit is contained in:
Lioncash 2014-03-06 01:57:36 -05:00
parent 72c40fa61a
commit 6c123ad04b
1 changed files with 3 additions and 3 deletions

View File

@ -168,9 +168,9 @@ public class ConfigureFragment extends Fragment {
String item = parent.getItemAtPosition(pos).toString();
String selection = item.substring(0, item.indexOf(" - "));
mPrefs.edit()
.putInt(Config.pref_broadcast, Integer.valueOf(selection))
.putInt(Config.pref_broadcast, Integer.parseInt(selection))
.commit();
Config.broadcast = Integer.valueOf(selection);
Config.broadcast = Integer.parseInt(selection);
}
@ -372,7 +372,7 @@ public class ConfigureFragment extends Fragment {
public void onItemSelected(AdapterView<?> parent, View view,
int pos, long id) {
int render = Integer.valueOf(parent.getItemAtPosition(pos)
int render = Integer.parseInt(parent.getItemAtPosition(pos)
.toString());
mPrefs.edit().putInt(Config.pref_renderdepth, render).commit();