From 8cce653a1f16e7b9ab4dd3aadb7320572928dcde Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 2 Mar 2017 13:03:30 +0100 Subject: [PATCH] changed default setting for enter_is_send on devices with keyboard --- .../java/eu/siacs/conversations/ui/ConversationActivity.java | 2 +- src/main/res/values-qwerty/defaults.xml | 4 ++++ src/main/res/values/defaults.xml | 1 + src/main/res/xml/preferences.xml | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/main/res/values-qwerty/defaults.xml diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java index 21c2dc783..afd56b528 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationActivity.java @@ -1774,7 +1774,7 @@ public class ConversationActivity extends XmppActivity } public boolean enterIsSend() { - return getPreferences().getBoolean("enter_is_send",false); + return getPreferences().getBoolean("enter_is_send",getResources().getBoolean(R.bool.enter_is_send)); } @Override diff --git a/src/main/res/values-qwerty/defaults.xml b/src/main/res/values-qwerty/defaults.xml new file mode 100644 index 000000000..17e88c0bb --- /dev/null +++ b/src/main/res/values-qwerty/defaults.xml @@ -0,0 +1,4 @@ + + + true + \ No newline at end of file diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index 7d613ab5e..eea700694 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -2,4 +2,5 @@ Phone true + false \ No newline at end of file diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 31014d855..3d98dedef 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -220,7 +220,7 @@