From 14fdc9ed15e354de63249e55f8dab7d702ad9c7d Mon Sep 17 00:00:00 2001 From: Wesley Ellis Date: Tue, 18 Apr 2017 22:10:48 -0400 Subject: [PATCH] Make compose EditText TYPE_TEXT_FLAG_CAP_SENTENCES --- app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 79547e49c..11e33ec22 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -744,7 +744,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFrag ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); editText.setLayoutParams(layoutParams); - editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE); + editText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_MULTI_LINE | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES); editText.setEms(10); editText.setBackgroundColor(0); editText.setGravity(Gravity.START | Gravity.TOP);