mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
lets set wereFavoritesMigrated earlier to avoid some crashlooping
This commit is contained in:
parent
409be79489
commit
817229a697
1 changed files with 1 additions and 1 deletions
|
@ -19,6 +19,7 @@ class SplashActivity : BaseSplashActivity() {
|
|||
if (config.appRunCount == 0) {
|
||||
config.wereFavoritesMigrated = true
|
||||
} else {
|
||||
config.wereFavoritesMigrated = true
|
||||
ensureBackgroundThread {
|
||||
val favorites = ArrayList<Favorite>()
|
||||
val favoritePaths = mediaDB.getFavorites().map { it.path }.toMutableList() as ArrayList<String>
|
||||
|
@ -26,7 +27,6 @@ class SplashActivity : BaseSplashActivity() {
|
|||
favorites.add(getFavoriteFromPath(it))
|
||||
}
|
||||
favoritesDB.insertAll(favorites)
|
||||
config.wereFavoritesMigrated = true
|
||||
|
||||
runOnUiThread {
|
||||
launchActivity()
|
||||
|
|
Loading…
Reference in a new issue