From d58aa01fde2431d4a4d2e57e0085918381cea9c6 Mon Sep 17 00:00:00 2001 From: Levi Bard Date: Fri, 12 Oct 2018 21:53:04 +0200 Subject: [PATCH] Focus content warning field on activation (#883) Fixes #773 --- app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index 314991e8..c582d22d 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/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));