ComposeActivity: fix crash on old Android

This commit is contained in:
Alibek Omarov 2020-04-12 22:02:32 +03:00
parent 508a91070e
commit 8eb3b7ecca

View File

@ -519,7 +519,6 @@ class ComposeActivity : BaseActivity(),
val actionStringId = if(enable) R.string.action_disable_formatting_syntax else R.string.action_enable_formatting_syntax
val tooltipText = getString(actionStringId).format(stringId)
composeFormattingSyntax.tooltipText = tooltipText
composeFormattingSyntax.contentDescription = tooltipText
@ColorInt val color = ThemeUtils.getColor(this, if(enable) R.attr.colorPrimary else android.R.attr.textColorTertiary);