Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5bd1221 authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "close() database should close the db no matter what the ref count says"

parents 0794cd33 f6373e95
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -852,7 +852,11 @@ public class SQLiteDatabase extends SQLiteClosable {
        lock();
        try {
            closeClosable();
            releaseReference();
            // close this database instance - regardless of its reference count value
            onAllReferencesReleased();
            // set path to null, to cause bad stuff to happen if this object is reused without
            // being opened first
            mPath = null;
        } finally {
            unlock();
        }