correct parsing of led color
This commit is contained in:
parent
c829f612cd
commit
3a814addab
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ public class NotificationService {
|
|||
private int getLedNotificationColor(SharedPreferences preferences) {
|
||||
String ledColorString = preferences.getString("led_notification_color", "0xffffffff");
|
||||
try {
|
||||
return Integer.valueOf(ledColorString);
|
||||
return Long.decode(ledColorString).intValue();
|
||||
} catch (NumberFormatException e) {
|
||||
return 0xffffffff;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue