mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
Use Integer.parseInt.
This commit is contained in:
parent
ac9e0025e2
commit
8489440d7e
@ -374,16 +374,7 @@ public class MainMenuActivity extends PreferenceActivity {
|
||||
}
|
||||
} else {
|
||||
String latency_audio = prefs.getString("audio_latency", "64");
|
||||
|
||||
if (latency_audio.equals("64")) {
|
||||
config.setInt("audio_latency", 64);
|
||||
} else if (latency_audio.equals("96")) {
|
||||
config.setInt("audio_latency", 96);
|
||||
} else if (latency_audio.equals("128")) {
|
||||
config.setInt("audio_latency", 128);
|
||||
} else if (latency_audio.equals("160")) {
|
||||
config.setInt("audio_latency", 160);
|
||||
}
|
||||
config.setInt("audio_latency", Integer.parseInt(latency_audio));
|
||||
}
|
||||
|
||||
config.setBoolean("audio_enable",
|
||||
|
Loading…
Reference in New Issue
Block a user