mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-19 01:50:07 +01:00
Fix card background handling on older versions
This commit is contained in:
parent
c8f2f13b53
commit
1965df43f5
@ -70,8 +70,13 @@ class OpenNoteAdapter(
|
||||
} else {
|
||||
Color.BLACK
|
||||
}
|
||||
val cardBackground = if (context.config.isUsingSystemTheme) {
|
||||
R.drawable.dialog_you_background
|
||||
} else {
|
||||
R.drawable.dialog_bg
|
||||
}
|
||||
open_note_item_holder.background =
|
||||
activity.resources.getColoredDrawableWithColor(R.drawable.dialog_you_background, cardBackgroundColor, LOWER_ALPHA_INT)
|
||||
activity.resources.getColoredDrawableWithColor(cardBackground, cardBackgroundColor, LOWER_ALPHA_INT)
|
||||
}
|
||||
open_note_item_title.apply {
|
||||
text = note.title
|
||||
|
Loading…
x
Reference in New Issue
Block a user