Handle the SQLiteDatabase already-closed problem

Remove the database.close in code for handling the re-open an already-closed object:SQLiteDatabase
problem.

Bug: 124451874
Test: robotest
Change-Id: Iff8c0bc5ea092d42cff0a40dfa4324a4de7c90bc
This commit is contained in:
Sunny Shao
2019-03-18 19:42:09 +08:00
parent 0b73c29993
commit c7e094001d

View File

@@ -84,7 +84,6 @@ class SlicesIndexer implements Runnable {
} finally {
database.endTransaction();
}
database.close();
}
@VisibleForTesting