We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92929dc commit cdcce16Copy full SHA for cdcce16
library/src/main/java/com/absinthe/rulesbundle/Repositories.kt
@@ -11,6 +11,9 @@ object Repositories {
11
private const val LOCAL_RULES_VERSION_FILE = "lcrules/version"
12
13
fun checkRulesDatabase(context: Context) {
14
+ if (!checkMd5(context) && !checkVersion(context)) {
15
+ deleteRulesDatabase(context)
16
+ }
17
val dbFile = context.getDatabasePath(RULES_DATABASE_NAME)
18
if (!dbFile.exists()) {
19
// On first launch, copy the prebuilt database from assets
@@ -21,9 +24,6 @@ object Repositories {
21
24
}
22
25
23
26
- if (!checkMd5(context) && !checkVersion(context)) {
- deleteRulesDatabase(context)
- }
27
28
29
fun getLocalRulesVersion(context: Context): Int {
0 commit comments