adding some coloring improvements

This commit is contained in:
tibbi
2021-02-12 17:24:36 +01:00
parent c6badfcf86
commit 8d97c3d0c3
4 changed files with 11 additions and 8 deletions

View File

@ -26,8 +26,9 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
}
recents_placeholder.text = context.getString(placeholderResId)
recents_placeholder.setTextColor(context.config.textColor)
recents_placeholder_2.apply {
setTextColor(context.config.primaryColor)
setTextColor(context.getAdjustedPrimaryColor())
underlineText()
setOnClickListener {
requestCallLogPermission()
@ -80,7 +81,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
private fun gotRecents(recents: ArrayList<RecentCall>) {
if (recents.isEmpty()) {
recents_placeholder.beVisible()
recents_placeholder_2.beVisibleIf(!context.hasPermission(PERMISSION_READ_CALL_LOG))
recents_placeholder_2.beGoneIf(context.hasPermission(PERMISSION_READ_CALL_LOG))
recents_list.beGone()
} else {
recents_placeholder.beGone()