Merge ""Fix" search" into nyc-dev am: 15310bb

am: 951ee5b

* commit '951ee5b5946ea0282ca52b953fe2b5c95efff8ce':
  "Fix" search

Change-Id: Ie504a81f0bc0f2f45ee5961a56a20f1a7fbdaae7
This commit is contained in:
Jason Monk
2016-04-15 16:10:45 +00:00
committed by android-build-merger
2 changed files with 60 additions and 55 deletions

View File

@@ -566,12 +566,7 @@ public class SettingsActivity extends SettingsDrawerActivity
// Run the Index update only if we have some space
if (!Utils.isLowStorage(this)) {
long indexStartTime = System.currentTimeMillis();
AsyncTask.execute(new Runnable() {
@Override
public void run() {
Index.getInstance(getApplicationContext()).update();
}
});
Index.getInstance(getApplicationContext()).update();
if (DEBUG_TIMING) Log.d(LOG_TAG, "Index.update() took "
+ (System.currentTimeMillis() - indexStartTime) + " ms");
} else {