Skip to content

Commit dc58267

Browse files
committed
Auto import fixed
1 parent 0d15c9f commit dc58267

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/main/java/com/minar/birday/preferences/backup/ContactsImporter.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class ContactsImporter(context: Context, attrs: AttributeSet?) : Preference(cont
7575
title = act.getString(R.string.import_contacts_title)
7676
)
7777
}
78+
else {
79+
act.mainViewModel.insertAll(events)
80+
context.runOnUiThread {
81+
context.showSnackbar(context.getString(R.string.import_success))
82+
}
83+
}
7884
true
7985
}
8086
}

0 commit comments

Comments
 (0)