mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-05 03:01:05 +02: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.Paint
|
||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
|
import android.util.TypedValue
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
@ -12,6 +13,7 @@ import com.simplemobiletools.commons.extensions.getColoredDrawableWithColor
|
|||||||
import com.simplemobiletools.commons.views.MyRecyclerView
|
import com.simplemobiletools.commons.views.MyRecyclerView
|
||||||
import com.simplemobiletools.notes.pro.R
|
import com.simplemobiletools.notes.pro.R
|
||||||
import com.simplemobiletools.notes.pro.dialogs.RenameChecklistItemDialog
|
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.helpers.DONE_CHECKLIST_ITEM_ALPHA
|
||||||
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
|
import com.simplemobiletools.notes.pro.interfaces.ChecklistItemsListener
|
||||||
import com.simplemobiletools.notes.pro.models.ChecklistItem
|
import com.simplemobiletools.notes.pro.models.ChecklistItem
|
||||||
@ -124,6 +126,7 @@ class ChecklistAdapter(activity: BaseSimpleActivity, var items: ArrayList<Checkl
|
|||||||
checklist_title.apply {
|
checklist_title.apply {
|
||||||
text = checklistItem.title
|
text = checklistItem.title
|
||||||
setTextColor(textColor)
|
setTextColor(textColor)
|
||||||
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, context.getTextSize())
|
||||||
|
|
||||||
if (checklistItem.isDone) {
|
if (checklistItem.isDone) {
|
||||||
paintFlags = Paint.STRIKE_THRU_TEXT_FLAG
|
paintFlags = Paint.STRIKE_THRU_TEXT_FLAG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user