Skip to content

Commit c051160

Browse files
committed
removing some warnings
1 parent 058e030 commit c051160

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/adapters/WidgetAdapter.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
3939
if (note!!.type == TYPE_CHECKLIST) {
4040
remoteView = RemoteViews(context.packageName, R.layout.item_checklist_widget).apply {
4141
val checklistItem = checklistItems.getOrNull(position) ?: return@apply
42-
setText(R.id.checklist_title, checklistItem.title)
42+
setText(checklist_title, checklistItem.title)
4343

4444
val widgetNewTextColor = if (checklistItem.isDone) widgetTextColor.adjustAlpha(DONE_CHECKLIST_ITEM_ALPHA) else widgetTextColor
45-
setTextColor(R.id.checklist_title, widgetNewTextColor)
46-
setTextSize(R.id.checklist_title, textSize)
45+
setTextColor(checklist_title, widgetNewTextColor)
46+
setTextSize(checklist_title, textSize)
4747

4848
val paintFlags = if (checklistItem.isDone) Paint.STRIKE_THRU_TEXT_FLAG or Paint.ANTI_ALIAS_FLAG else 0
49-
setInt(R.id.checklist_title, "setPaintFlags", paintFlags)
49+
setInt(checklist_title, "setPaintFlags", paintFlags)
5050

5151
Intent().apply {
5252
putExtra(OPEN_NOTE_ID, noteId)

0 commit comments

Comments
 (0)