Skip to content

Commit

Permalink
crashfix by log: deal with ConcurrentModificationException on TabsDao…
Browse files Browse the repository at this point in the history
….updatePositions
  • Loading branch information
truefedex committed Apr 9, 2022
1 parent 03cf22d commit 6be3f8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {
applicationId = "com.phlox.tvwebbrowser"
minSdk = 21
targetSdk = 30
versionCode = 52
versionName = "1.8.1"
versionCode = 53
versionName = "1.8.2"

javaCompileOptions {
annotationProcessorOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ class TabsModel : ActiveModel() {
}
}
if (positionsChanged) {
val tabsListClone = ArrayList(tabsStates)
modelScope.launch {
val tabsDao = AppDatabase.db.tabsDao()
tabsDao.updatePositions(tabsStates)
tabsDao.updatePositions(tabsListClone)
}
}
}, false)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.1.2")
classpath("com.android.tools.build:gradle:7.1.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20")
classpath("com.google.gms:google-services:4.3.10")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.8.1")
Expand Down

0 comments on commit 6be3f8e

Please sign in to comment.