Focus content warning field on activation (#883)

Fixes #773
This commit is contained in:
Levi Bard 2018-10-12 21:53:04 +02:00 committed by Konrad Pozniak
parent 6fde2888c9
commit bc4b77512f

View file

@ -1418,6 +1418,8 @@ public final class ComposeActivity
statusMarkSensitive = true;
contentWarningBar.setVisibility(View.VISIBLE);
contentWarningButton.setTextColor(ContextCompat.getColor(this, R.color.primary));
contentWarningEditor.setSelection(contentWarningEditor.getText().length());
contentWarningEditor.requestFocus();
} else {
contentWarningBar.setVisibility(View.GONE);
contentWarningButton.setTextColor(ThemeUtils.getColor(this, android.R.attr.textColorTertiary));