This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.database.sqlite.SQLiteTransactionListener | |
import androidx.sqlite.db.SupportSQLiteDatabase | |
import androidx.sqlite.db.SupportSQLiteOpenHelper | |
import com.commonsware.cwac.saferoom.SafeHelperFactory | |
import java.util.concurrent.locks.ReentrantLock | |
class SupportSQLiteOpenHelperWrapped(val source: SupportSQLiteOpenHelper) : SupportSQLiteOpenHelper by source { | |
private val writableDatabaseLazy: SupportSQLiteDatabaseWrapped by lazy { | |
SupportSQLiteDatabaseWrapped(source.writableDatabase) |