From b22d863c362bb6492240700c0f69f1a5d926f46b Mon Sep 17 00:00:00 2001 From: steckbrief Date: Tue, 3 Nov 2015 21:09:36 +0100 Subject: Implements FS#26: Introduction of dialog to choose whether to resize a picture or not --- .../de/thedevstack/conversationsplus/ConversationsPlusPreferences.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java') diff --git a/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java b/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java index 47daddb0..b7b7fe47 100644 --- a/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java +++ b/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java @@ -253,7 +253,8 @@ public class ConversationsPlusPreferences extends Settings { } protected static > T getEnumFromStringPref(String key, T defaultValue) { - return (T) T.valueOf(defaultValue.getClass(), defaultValue.name()); + String enumValueAsString = getString(key, defaultValue.name()); + return (T) Enum.valueOf(defaultValue.getClass(), enumValueAsString); } private static boolean getBoolean(String key, boolean defValue) { -- cgit v1.2.3