changed default setting for enter_is_send on devices with keyboard

This commit is contained in:
Daniel Gultsch 2017-03-02 13:03:30 +01:00
parent c740386297
commit 8cce653a1f
4 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="enter_is_send">true</bool>
</resources>

View file

@ -2,4 +2,5 @@
<resources>
<string name="default_resource">Phone</string>
<bool name="portrait_only">true</bool>
<bool name="enter_is_send">false</bool>
</resources>

View file

@ -220,7 +220,7 @@
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_input_options">
<CheckBoxPreference
android:defaultValue="false"
android:defaultValue="@bool/enter_is_send"
android:key="enter_is_send"
android:summary="@string/pref_enter_is_send_summary"
android:title="@string/pref_enter_is_send"/>