commit | 7a8de4943c83f8db49c5bcc282cff3f724f91a43 | [log] [tgz] |
---|---|---|
author | Bjorn Bringert <bringert@android.com> | Tue Jun 08 14:00:05 2010 +0100 |
committer | Bjorn Bringert <bringert@android.com> | Tue Jun 08 14:02:40 2010 +0100 |
tree | 416fed63541994246b4b9edecc37b33cc32ed944 | |
parent | c9cdac4f63e717208539ff9be5a282a5eacd2429 [diff] |
Include all enabled default corpora in the first batch This avoids a problem where default corpora where not queried because the number of default corpora was larger than the number of promoted sources. Bug: http://b/issue?id=2750913 Change-Id: I2a93ea8c1df930499f02088683c4268340099a77
diff --git a/src/com/android/quicksearchbox/SuggestionsProviderImpl.java b/src/com/android/quicksearchbox/SuggestionsProviderImpl.java index 181d80a..8847f46 100644 --- a/src/com/android/quicksearchbox/SuggestionsProviderImpl.java +++ b/src/com/android/quicksearchbox/SuggestionsProviderImpl.java
@@ -153,7 +153,6 @@ } int initialBatchSize = countDefaultCorpora(corporaToQuery); - initialBatchSize = Math.min(initialBatchSize, mConfig.getNumPromotedSources()); if (initialBatchSize == 0) { initialBatchSize = mConfig.getNumPromotedSources(); }