correct parsing of led color

This commit is contained in:
lookshe 2015-04-11 20:23:25 +02:00
parent c829f612cd
commit 3a814addab

View file

@ -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;
}