Skip to content

Commit fa947ff

Browse files
committed
fix a crash at placing a widget before launching the app once
1 parent 7fc41e4 commit fa947ff

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/helpers/NotesHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class NotesHelper(val activity: Activity) {
1111
fun getNotes(callback: (notes: ArrayList<Note>) -> Unit) {
1212
Thread {
1313
// make sure the initial note has enough time to be precreated
14-
if (activity.config.appRunCount == 1) {
14+
if (activity.config.appRunCount <= 1) {
1515
activity.notesDB.getNotes()
1616
Thread.sleep(200)
1717
}

0 commit comments

Comments
 (0)