From ec145eefb198b1e245b6d8a1e0420e72dabf9690 Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Tue, 24 Sep 2019 20:33:05 +0200 Subject: [PATCH] fix content warning edittext not losing focus when its hidden (#1498) --- app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java index a9ed60e4..e34802e3 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java @@ -1718,6 +1718,7 @@ public final class ComposeActivity color = ContextCompat.getColor(this, R.color.tusky_blue); } else { contentWarningBar.setVisibility(View.GONE); + textEditor.requestFocus(); color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary); } contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN);