From a892bb6f1685b84b74ba37e5a6a24ee8fb45eee7 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Mon, 7 Aug 2017 12:57:57 +0200 Subject: Simplifying introduction of new XEP implementations, implements FS#250 and FS#251 (Privacy and Security settings), refactoring of location of some interfaces --- .../conversationsplus/ConversationsPlusPreferences.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (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 546ad7ee..e59f5b57 100644 --- a/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java +++ b/src/main/java/de/thedevstack/conversationsplus/ConversationsPlusPreferences.java @@ -14,6 +14,18 @@ public class ConversationsPlusPreferences extends Settings { private static ConversationsPlusPreferences instance; private final SharedPreferences sharedPreferences; + public static boolean sendEntityTime() { + return getBoolean("send_entity_time", true); + } + + public static boolean sendSoftwareVersion() { + return getBoolean("send_software_info", true); + } + + public static boolean sendOsInformation() { + return getBoolean("send_os_info", true); + } + public static boolean logStanzas() { return getBoolean("log_stanzas", true); } -- cgit v1.2.3