|
|
|
@ -1482,14 +1482,19 @@ public final class ComposeActivity |
|
|
|
|
private void showContentWarning(boolean show) { |
|
|
|
|
statusHideText = show; |
|
|
|
|
TransitionManager.beginDelayedTransition((ViewGroup)contentWarningBar.getParent()); |
|
|
|
|
int color; |
|
|
|
|
if (show) { |
|
|
|
|
statusMarkSensitive = true; |
|
|
|
|
contentWarningBar.setVisibility(View.VISIBLE); |
|
|
|
|
contentWarningEditor.setSelection(contentWarningEditor.getText().length()); |
|
|
|
|
contentWarningEditor.requestFocus(); |
|
|
|
|
color = ContextCompat.getColor(this, R.color.tusky_blue); |
|
|
|
|
} else { |
|
|
|
|
contentWarningBar.setVisibility(View.GONE); |
|
|
|
|
color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary); |
|
|
|
|
} |
|
|
|
|
contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN); |
|
|
|
|
|
|
|
|
|
updateHideMediaToggle(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|