From 3a814addab32a46fea677765032e5d4ba8bb5161 Mon Sep 17 00:00:00 2001 From: lookshe Date: Sat, 11 Apr 2015 20:23:25 +0200 Subject: correct parsing of led color --- src/main/java/eu/siacs/conversations/services/NotificationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index fa079829..0ecec392 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -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; } -- cgit v1.2.3