am 04b646df
: Merge "Possible NumberFormatException of parseInt is outside try-catch"
* commit '04b646df1e9f00719d2d547fa1da59407bb6be67': Possible NumberFormatException of parseInt is outside try-catch
This commit is contained in:
committed by
Android Git Automerger
commit
b68b35dd6a
@@ -318,8 +318,8 @@ public class SoundSettings extends PreferenceActivity implements
|
|||||||
public boolean onPreferenceChange(Preference preference, Object objValue) {
|
public boolean onPreferenceChange(Preference preference, Object objValue) {
|
||||||
final String key = preference.getKey();
|
final String key = preference.getKey();
|
||||||
if (KEY_EMERGENCY_TONE.equals(key)) {
|
if (KEY_EMERGENCY_TONE.equals(key)) {
|
||||||
int value = Integer.parseInt((String) objValue);
|
|
||||||
try {
|
try {
|
||||||
|
int value = Integer.parseInt((String) objValue);
|
||||||
Settings.System.putInt(getContentResolver(),
|
Settings.System.putInt(getContentResolver(),
|
||||||
Settings.System.EMERGENCY_TONE, value);
|
Settings.System.EMERGENCY_TONE, value);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
Reference in New Issue
Block a user