change cw icon color on on/off (#1181)
This commit is contained in:
parent
d0ca965cc8
commit
21a817a8d4
1 changed files with 5 additions and 0 deletions
|
@ -1482,14 +1482,19 @@ public final class ComposeActivity
|
||||||
private void showContentWarning(boolean show) {
|
private void showContentWarning(boolean show) {
|
||||||
statusHideText = show;
|
statusHideText = show;
|
||||||
TransitionManager.beginDelayedTransition((ViewGroup)contentWarningBar.getParent());
|
TransitionManager.beginDelayedTransition((ViewGroup)contentWarningBar.getParent());
|
||||||
|
int color;
|
||||||
if (show) {
|
if (show) {
|
||||||
statusMarkSensitive = true;
|
statusMarkSensitive = true;
|
||||||
contentWarningBar.setVisibility(View.VISIBLE);
|
contentWarningBar.setVisibility(View.VISIBLE);
|
||||||
contentWarningEditor.setSelection(contentWarningEditor.getText().length());
|
contentWarningEditor.setSelection(contentWarningEditor.getText().length());
|
||||||
contentWarningEditor.requestFocus();
|
contentWarningEditor.requestFocus();
|
||||||
|
color = ContextCompat.getColor(this, R.color.tusky_blue);
|
||||||
} else {
|
} else {
|
||||||
contentWarningBar.setVisibility(View.GONE);
|
contentWarningBar.setVisibility(View.GONE);
|
||||||
|
color = ThemeUtils.getColor(this, android.R.attr.textColorTertiary);
|
||||||
}
|
}
|
||||||
|
contentWarningButton.getDrawable().setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
||||||
|
|
||||||
updateHideMediaToggle();
|
updateHideMediaToggle();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue