aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/services/NotificationService.java2
1 files changed, 1 insertions, 1 deletions
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;
}