Skip to content

Commit 03d0ea8

Browse files
authored
Merge pull request #654 from esensar/sdk-34-migration
Update targetSdkVersion to 34
2 parents 75e559d + 6a97150 commit 03d0ea8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ if (keystorePropertiesFile.exists()) {
1313
}
1414

1515
android {
16-
compileSdk 33
16+
compileSdk 34
1717

1818
defaultConfig {
1919
applicationId "com.simplemobiletools.notes.pro"
2020
minSdkVersion 23
21-
targetSdkVersion 33
21+
targetSdkVersion 34
2222
versionCode 107
2323
versionName "6.15.6"
2424
setProperty("archivesBaseName", "notes")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class WidgetAdapter(val context: Context, val intent: Intent) : RemoteViewsServi
126126
val noteId = intent.getLongExtra(NOTE_ID, 0L)
127127
note = context.notesDB.getNoteWithId(noteId)
128128
if (note?.type == NoteType.TYPE_CHECKLIST) {
129-
checklistItems = note!!.getNoteStoredValue(context)?.let { Json.decodeFromString(it) } ?: mutableListOf()
129+
checklistItems = note!!.getNoteStoredValue(context)?.ifEmpty { "[]" }?.let { Json.decodeFromString(it) } ?: mutableListOf()
130130

131131
// checklist title can be null only because of the glitch in upgrade to 6.6.0, remove this check in the future
132132
checklistItems = checklistItems.filter { it.title != null }.toMutableList() as ArrayList<ChecklistItem>

0 commit comments

Comments
 (0)