Skip to content

Commit

Permalink
Fixed compose bar tint on Android 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Jul 6, 2018
1 parent a922cb6 commit 6fe8b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -138,7 +138,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {

attachments.adapter = attachmentAdapter

messageBackground.backgroundTintMode = PorterDuff.Mode.MULTIPLY
message.supportsInputContent = true

theme
Expand All @@ -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))
}
}
Expand Down
Expand Up @@ -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))
}
Expand Down

0 comments on commit 6fe8b55

Please sign in to comment.