fix content warning edittext not losing focus when its hidden (#1498)

This commit is contained in:
Konrad Pozniak 2019-09-24 20:33:05 +02:00 committed by GitHub
parent 0d465d3bee
commit ca3ce63c80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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