aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/tzur
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/tzur')
-rw-r--r--src/main/java/de/tzur/conversations/Settings.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/de/tzur/conversations/Settings.java b/src/main/java/de/tzur/conversations/Settings.java
index 25079ea1..cc2ac045 100644
--- a/src/main/java/de/tzur/conversations/Settings.java
+++ b/src/main/java/de/tzur/conversations/Settings.java
@@ -15,7 +15,7 @@ public final class Settings {
*/
public static void initSettingsClassWithPreferences(SharedPreferences preferences) {
Log.d("SETTING", "Initializing settings");
- String[] preferenceNames = { "parse_emoticons", "send_button_status" };
+ String[] preferenceNames = { "parse_emoticons", "send_button_status", "led_notification_color" };
for (String name : preferenceNames) {
Settings.synchronizeSettingsClassWithPreferences(preferences, name);
}
@@ -35,6 +35,9 @@ public final class Settings {
case "send_button_status":
Settings.SHOW_ONLINE_STATUS = preferences.getBoolean(name, Settings.SHOW_ONLINE_STATUS);
break;
+ case "led_notify_color":
+ Settings.LED_COLOR = preferences.getInt(name, Settings.LED_COLOR);
+ break;
}
}
/**
@@ -45,6 +48,10 @@ public final class Settings {
* Boolean if online status should be shown or not.
*/
public static boolean SHOW_ONLINE_STATUS = false;
+ /**
+ * LED Color
+ */
+ public static int LED_COLOR = 0xffffffff;
/**
* This is a utility class - private constructor avoids any instantiation.