when I was implementing open helper based on docum...
# anko
d
when I was implementing open helper based on documentation I also changed synchronizing instance creation
Copy code
fun getInstance(ctx: Context): MyDatabaseOpenHelper {
            synchronized(this) {
                if (instance == null) {
                    instance = MyDatabaseOpenHelper(ctx.applicationContext)
                }
            }
            return instance!!
        }