mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 04:20:07 +01:00
fix #302, apply the selected text size on checklist items too
This commit is contained in:
parent
d4d7eecab0
commit
ded6231dab
@ -2,6 +2,7 @@ package com.simplemobiletools.notes.pro.adapters
|
||||
|
||||
import android.graphics.Paint
|
||||
import android.graphics.drawable.Drawable
|
||||
import android.util.TypedValue
|
||||
import android.view.Menu
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
@ -12,6 +13,7 @@ import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor
|
||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||
import com.simplemobiletools.notes.pro.R
|
||||
import com.simplemobiletools.notes.pro.dialogs.RenameChecklistItemDialog
|
||||
import com.simplemobiletools.notes.pro.extensions.getTextSize
|
||||
import com.simplemobiletools.notes.pro.helpers.DONE_CHECKLIST_ITEM_ALPHA
|
||||
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
|
||||
import com.simplemobiletools.notes.pro.models.ChecklistItem
|
||||
@ -124,6 +126,7 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList<Checkl
|
||||
checklist_title.apply {
|
||||
text = checklistItem.title
|
||||
setTextColor(textColor)
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
|
||||
|
||||
if (checklistItem.isDone) {
|
||||
paintFlags = Paint.STRIKE_THRU_TEXT_FLAG
|
||||
|
Loading…
x
Reference in New Issue
Block a user