Move indexing into the Search Fragment

Cold start latency for Settings increased drastically
from the indexing of the Search Database. Moving it into
the Search Fragment moves that latency to cases where
users are actually searching.

Change-Id: I11368af610ac9e80f9901654f980c2c1e26342a5
Fixes: 34142852
Test: make RunSettingsRoboTests
This commit is contained in:
Matthew Fritze
2017-01-18 18:24:56 -08:00
parent c3fdc3e813
commit 34c27609d6
6 changed files with 46 additions and 14 deletions

View File

@@ -201,7 +201,7 @@ public class IndexDatabaseHelper extends SQLiteOpenHelper {
reconstruct(db);
}
private void reconstruct(SQLiteDatabase db) {
public void reconstruct(SQLiteDatabase db) {
dropTables(db);
bootstrapDB(db);
}