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; statusMarkSensitive = true;
contentWarningBar.setVisibility(View.VISIBLE); contentWarningBar.setVisibility(View.VISIBLE);
contentWarningButton.setTextColor(ContextCompat.getColor(this, R.color.primary)); contentWarningButton.setTextColor(ContextCompat.getColor(this, R.color.primary));
contentWarningEditor.setSelection(contentWarningEditor.getText().length());
contentWarningEditor.requestFocus();
} else { } else {
contentWarningBar.setVisibility(View.GONE); contentWarningBar.setVisibility(View.GONE);
contentWarningButton.setTextColor(ThemeUtils.getColor(this, android.R.attr.textColorTertiary)); contentWarningButton.setTextColor(ThemeUtils.getColor(this, android.R.attr.textColorTertiary));