Tidy up uses of Integer.valueOf.

Use parseInt when the result is assigned to an int. Allocates fewer
objects.

bug: 28078871
Change-Id: Icbb0507949b71bc0a729f2e65309dab939b3d853
This commit is contained in:
Narayan Kamath
2016-04-19 11:48:33 +01:00
parent 6a65b38d23
commit d6ea1e86f2
3 changed files with 5 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ public class AddFileActivity extends Activity {
return;
}
long fileSize = Integer.valueOf(fileSizeEditTextValue) * mSizeMultiplier;
long fileSize = Long.parseLong(fileSizeEditTextValue) * mSizeMultiplier;
if (mFileStorage == FileStorage.EXTERNAL && !Utils.isExternalStorageAvailable()) {
Toast toast = Toast.makeText(this,