Focus content warning field on activation (#883)

Fixes #773
main
Levi Bard 6 years ago committed by Konrad Pozniak
parent eca6265c6a
commit d58aa01fde
  1. 2
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

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

Loading…
Cancel
Save