That fuck shit the fascists are using
1package org.tm.archive.database
2
3/**
4 * A simple wrapper to load SQLCipher libs exactly once. The exact entry point of database access is non-deterministic because content providers run before
5 * Application#onCreate().
6 */
7object SqlCipherLibraryLoader {
8 @Volatile
9 private var loaded = false
10 private val LOCK = Object()
11
12 @JvmStatic
13 fun load() {
14 if (!loaded) {
15 synchronized(LOCK) {
16 if (!loaded) {
17 System.loadLibrary("sqlcipher")
18 loaded = true
19 }
20 }
21 }
22 }
23}