From 17779e77002e99dabb73f4fa8f9596e9d220319b Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sat, 11 Apr 2015 23:00:10 +0200 Subject: Color choose dialog --- src/main/java/de/tzur/conversations/Settings.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/java/de/tzur') 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. -- cgit v1.2.3