forked from upstream-mirrors/quik
Fixed compose bar tint on Android 5.0
This commit is contained in:
@@ -138,7 +138,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
|
|
||||||
attachments.adapter = attachmentAdapter
|
attachments.adapter = attachmentAdapter
|
||||||
|
|
||||||
messageBackground.backgroundTintMode = PorterDuff.Mode.MULTIPLY
|
|
||||||
message.supportsInputContent = true
|
message.supportsInputContent = true
|
||||||
|
|
||||||
theme
|
theme
|
||||||
@@ -153,6 +152,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
|
|
||||||
// These theme attributes don't apply themselves on API 21
|
// These theme attributes don't apply themselves on API 21
|
||||||
if (Build.VERSION.SDK_INT <= 22) {
|
if (Build.VERSION.SDK_INT <= 22) {
|
||||||
|
messageBackground.setBackgroundTint(resolveThemeColor(R.attr.bubbleColor))
|
||||||
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ class QkReplyActivity : QkThemedActivity(), QkReplyView {
|
|||||||
if (Build.VERSION.SDK_INT <= 22) {
|
if (Build.VERSION.SDK_INT <= 22) {
|
||||||
toolbar.setBackgroundTint(resolveThemeColor(R.attr.colorPrimary))
|
toolbar.setBackgroundTint(resolveThemeColor(R.attr.colorPrimary))
|
||||||
background.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
background.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
||||||
|
messageBackground.setBackgroundTint(resolveThemeColor(R.attr.bubbleColor))
|
||||||
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
composeBackground.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
||||||
composeBackground2.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
composeBackground2.setBackgroundTint(resolveThemeColor(R.attr.composeBackground))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user