Fixed compose bar tint on Android 5.0

This commit is contained in:
Moez Bhatti
2018-07-06 15:17:46 -04:00
parent a922cb6ba5
commit 6fe8b55acc
2 changed files with 2 additions and 1 deletions
@@ -138,7 +138,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
attachments.adapter = attachmentAdapter
messageBackground.backgroundTintMode = PorterDuff.Mode.MULTIPLY
message.supportsInputContent = true
theme
@@ -153,6 +152,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
// These theme attributes don't apply themselves on API 21
if (Build.VERSION.SDK_INT <= 22) {
messageBackground.setBackgroundTint(resolveThemeColor(R.attr.bubbleColor))
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
}
}
@@ -77,6 +77,7 @@ class QkReplyActivity : QkThemedActivity(), QkReplyView {
if (Build.VERSION.SDK_INT <= 22) {
toolbar.setBackgroundTint(resolveThemeColor(R.attr.colorPrimary))
background.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
messageBackground.setBackgroundTint(resolveThemeColor(R.attr.bubbleColor))
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
composeBackground2.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
}