summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-05-20 08:54:39 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-05-20 08:54:39 -0700
commited73bad62e111fab940360ba6ca7f8dae63e1b1e (patch)
tree5330a8e2631ae649afd8350bb4b11b18c4cb93b8
parentf68498eaed5de4b99174e41519da7afa43df57e1 (diff)
parent9fb724ba90364b86265dea6b281d182d26124606 (diff)
downloadframeworks_base-ed73bad62e111fab940360ba6ca7f8dae63e1b1e.zip
frameworks_base-ed73bad62e111fab940360ba6ca7f8dae63e1b1e.tar.gz
frameworks_base-ed73bad62e111fab940360ba6ca7f8dae63e1b1e.tar.bz2
am 9fb724ba: Merge change 1804 into donut
Merge commit '9fb724ba90364b86265dea6b281d182d26124606' * commit '9fb724ba90364b86265dea6b281d182d26124606': Additional logging in buildSearchableList().
-rw-r--r--core/java/android/server/search/Searchables.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/server/search/Searchables.java b/core/java/android/server/search/Searchables.java
index 9586d56..62631d6 100644
--- a/core/java/android/server/search/Searchables.java
+++ b/core/java/android/server/search/Searchables.java
@@ -24,6 +24,7 @@ import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
+import android.util.Log;
import java.util.ArrayList;
import java.util.HashMap;
@@ -34,6 +35,8 @@ import java.util.List;
*/
public class Searchables {
+ private static final String LOG_TAG = "Searchables";
+
// static strings used for XML lookups, etc.
// TODO how should these be documented for the developer, in a more structured way than
// the current long wordy javadoc in SearchManager.java ?
@@ -184,7 +187,6 @@ public class Searchables {
* TODO: sort the list somehow? UI choice.
*/
public void buildSearchableList() {
-
// These will become the new values at the end of the method
HashMap<ComponentName, SearchableInfo> newSearchablesMap
= new HashMap<ComponentName, SearchableInfo>();
@@ -223,6 +225,11 @@ public class Searchables {
ComponentName globalSearchActivity = globalSearchIntent.resolveActivity(pm);
SearchableInfo newDefaultSearchable = newSearchablesMap.get(globalSearchActivity);
+ if (newDefaultSearchable == null) {
+ Log.w(LOG_TAG, "No searchable info found for new default searchable activity "
+ + globalSearchActivity);
+ }
+
// Store a consistent set of new values
synchronized (this) {
mSearchablesMap = newSearchablesMap;