Skip to content

Commit

Permalink
Default to showing the send button
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Feb 1, 2013
1 parent 38abd59 commit ee303c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/xml/preferences_device.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:defaultValue="true"/>
<CheckBoxPreference
android:key="kb_send"
android:defaultValue="false"
android:defaultValue="true"
android:summaryOn="Send button will be displayed on the on-screen keyboard"
android:summaryOff="Emoticon button will be displayed on the on-screen keyboard"
android:title="Show send button"/>
Expand Down
2 changes: 1 addition & 1 deletion src/com/irccloud/android/ActionEditText.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public InputConnection onCreateInputConnection(EditorInfo outAttrs)
outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NO_ENTER_ACTION;
outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NAVIGATE_PREVIOUS;
outAttrs.imeOptions &= ~EditorInfo.IME_FLAG_NAVIGATE_NEXT;
if(PreferenceManager.getDefaultSharedPreferences(IRCCloudApplication.getInstance().getApplicationContext()).getBoolean("kb_send", false)) {
if(PreferenceManager.getDefaultSharedPreferences(IRCCloudApplication.getInstance().getApplicationContext()).getBoolean("kb_send", true)) {
outAttrs.inputType = EditorInfo.TYPE_CLASS_TEXT|EditorInfo.TYPE_TEXT_VARIATION_NORMAL|EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES|EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT;
}
return conn;
Expand Down

0 comments on commit ee303c0

Please sign in to comment.