diff --git a/app/build.gradle b/app/build.gradle index 25ce35a73..6de32751d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -92,7 +92,7 @@ dependencies { implementation 'io.requery:requery:1.4.1' implementation 'io.requery:requery-android:1.4.1' - implementation 'net.zetetic:android-database-sqlcipher:3.5.7' + implementation 'net.zetetic:android-database-sqlcipher:3.5.9' annotationProcessor 'io.requery:requery-processor:1.4.1' compile 'org.parceler:parceler-api:1.1.9' diff --git a/app/src/main/java/com/nextcloud/talk/activities/MainActivity.java b/app/src/main/java/com/nextcloud/talk/activities/MainActivity.java index 1892fa8fe..dc877a147 100644 --- a/app/src/main/java/com/nextcloud/talk/activities/MainActivity.java +++ b/app/src/main/java/com/nextcloud/talk/activities/MainActivity.java @@ -105,6 +105,7 @@ public final class MainActivity extends AppCompatActivity implements ActionBarPr } if (!router.hasRootController() && hasDb && userUtils.anyUserExists()) { + sqlCipherDatabaseSource.close(); router.setRoot(RouterTransaction.with(new MagicBottomNavigationController()) .pushChangeHandler(new HorizontalChangeHandler()) .popChangeHandler(new HorizontalChangeHandler()));