aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
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/de
parent94a669fcb861d9cff4414d98abb289d1452c9300 (diff)
Color choose dialog
Diffstat (limited to 'src/main/java/de')
-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.