Change valueOf -> parseBoolean to avoid unneeded boxing

Bug: None
Change-Id: Id629c89f40d3f20b050c75d33caf308d77e9eb59
Reviewed-on: https://webrtc-review.googlesource.com/63181
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22507}
This commit is contained in:
Oleh Prypin
2018-03-20 09:20:47 +01:00
committed by Commit Bot
parent a98bb2de15
commit d328ec3dfa

View File

@ -235,7 +235,7 @@ public class ConnectActivity extends Activity {
*/
private boolean sharedPrefGetBoolean(
int attributeId, String intentName, int defaultId, boolean useFromIntent) {
boolean defaultValue = Boolean.valueOf(getString(defaultId));
boolean defaultValue = Boolean.parseBoolean(getString(defaultId));
if (useFromIntent) {
return getIntent().getBooleanExtra(intentName, defaultValue);
} else {