aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2015-04-11 23:00:10 +0200
committersteckbrief <steckbrief@chefmail.de>2015-04-11 23:00:10 +0200
commit17779e77002e99dabb73f4fa8f9596e9d220319b (patch)
tree7604484b69948e299c95a58f2f6be8fd78056fd7 /src/main/java/eu
parent94a669fcb861d9cff4414d98abb289d1452c9300 (diff)
Color choose dialog
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/services/NotificationService.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java
index 0ecec392..642021bf 100644
--- a/src/main/java/eu/siacs/conversations/services/NotificationService.java
+++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java
@@ -32,6 +32,7 @@ import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import de.tzur.conversations.Settings;
import eu.siacs.conversations.Config;
import eu.siacs.conversations.R;
import eu.siacs.conversations.entities.Account;
@@ -215,21 +216,12 @@ public class NotificationService {
mBuilder.setDefaults(0);
mBuilder.setSmallIcon(R.drawable.ic_notification);
mBuilder.setDeleteIntent(createDeleteIntent());
- mBuilder.setLights(this.getLedNotificationColor(preferences), 2000, 4000);
+ mBuilder.setLights(Settings.LED_COLOR, 2000, 4000);
final Notification notification = mBuilder.build();
notificationManager.notify(NOTIFICATION_ID, notification);
}
}
- private int getLedNotificationColor(SharedPreferences preferences) {
- String ledColorString = preferences.getString("led_notification_color", "0xffffffff");
- try {
- return Long.decode(ledColorString).intValue();
- } catch (NumberFormatException e) {
- return 0xffffffff;
- }
- }
-
private Builder buildMultipleConversation() {
final Builder mBuilder = new NotificationCompat.Builder(
mXmppConnectionService);