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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user