Merge pull request #200 from tahnok/master

Make compose EditText TYPE_TEXT_FLAG_CAP_SENTENCES
main
Vavassor 8 years ago committed by GitHub
commit 95bdae5d7d
  1. 2
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

@ -785,7 +785,7 @@ public class ComposeActivity extends BaseActivity implements ComposeOptionsFrag
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams( ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
editText.setLayoutParams(layoutParams); 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.setEms(10);
editText.setBackgroundColor(0); editText.setBackgroundColor(0);
editText.setGravity(Gravity.START | Gravity.TOP); editText.setGravity(Gravity.START | Gravity.TOP);

Loading…
Cancel
Save