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
1 changed files with 2 additions and 0 deletions

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));