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
1 changed files with 1 additions and 0 deletions

View File

@ -1718,6 +1718,7 @@ public final class ComposeActivity
color = ContextCompat.getColor(this, R.color.tusky_blue); color = ContextCompat.getColor(this, R.color.tusky_blue);
} else { } else {
contentWarningBar.setVisibility(View.GONE); contentWarningBar.setVisibility(View.GONE);
textEditor.requestFocus();
color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary); color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary);
} }
contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN); contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN);