aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2015-04-11 20:23:25 +0200
committerlookshe <github@lookshe.org>2015-04-11 20:23:25 +0200
commit3a814addab32a46fea677765032e5d4ba8bb5161 (patch)
treead595e727b761b38be4dd82a47182fd29ebcc437 /src
parentc829f612cdb466c8329b2d96fbb86900bc52b6c7 (diff)
correct parsing of led color
Diffstat (limited to '')
-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;
}