现象:
?
修改:
packages/apps/SettingsIntelligence# git diff
diff --git a/src/com/android/settings/intelligence/search/SearchViewHolder.java b/src/com/android/settings/intelligence/search/SearchViewHolder.java
index d669e6d..342406f 100644
--- a/src/com/android/settings/intelligence/search/SearchViewHolder.java
+++ b/src/com/android/settings/intelligence/search/SearchViewHolder.java
@@ -91,11 +91,19 @@ public abstract class SearchViewHolder extends RecyclerView.ViewHolder {
? ? ? ? ?}
? ? ? ? ?final Context context = breadcrumbView.getContext();
? ? ? ? ?String breadcrumb = result.breadcrumbs.get(0);
+ ? ? ? ? ? ? ? android.util.Log.d("SearchViewHolder","qhj SearchViewHolder 111 bindBreadcrumbView-->breadcrumb="+breadcrumb);
? ? ? ? ?final int count = result.breadcrumbs.size();
? ? ? ? ?for (int i = 1; i < count; i++) {
+ ? ? ? ? ? ? ? ? ? ? ? if(breadcrumb==null){
+ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? breadcrumb = result.breadcrumbs.get(1);
+ ? ? ? ? ? ? ? ? ? ? ? }else{
? ? ? ? ? ? ?breadcrumb = context.getString(R.string.search_breadcrumb_connector,
? ? ? ? ? ? ? ? ? ? ?breadcrumb, result.breadcrumbs.get(i));
+ ? ? ? ? ? ? ? ? ? ? ? }
+ ? ? ? ? ? ? ? android.util.Log.d("SearchViewHolder","qhj SearchViewHolder bindBreadcrumbView-->breadcrumb="+breadcrumb);
+ ? ? ? ? ? ? ? android.util.Log.d("SearchViewHolder","qhj SearchViewHolder bindBreadcrumbView-->result.breadcrumbs.get(i)="+result.breadcrumbs.get(i));
? ? ? ? ?}
+
? ? ? ? ?breadcrumbView.setText(breadcrumb);
? ? ? ? ?breadcrumbView.setVisibility(View.VISIBLE);
? ? ?}
|