@Override
 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   CharSequence title = ((TextView) view).getText();
   mFragmentBreadCrumbs.setTitle(title, title);
   mChildWrapper.setSelectedGroup(position);
   mGroupList.setItemChecked(position, true);
 }
 private void inflateTwoPane(ViewStub stub) {
   stub.setLayoutResource(R.layout.preference_list_content);
   stub.inflate();
   mGroupList = (ListView) mRoot.findViewById(android.R.id.list);
   mPrefsContainer = (ViewGroup) mRoot.findViewById(R.id.prefs_frame);
   mFragmentBreadCrumbs = (FragmentBreadCrumbs) mRoot.findViewById(android.R.id.title);
   mFragmentBreadCrumbs.setMaxVisible(1);
   mFragmentBreadCrumbs.setActivity(getActivity());
   mPrefsContainer.setVisibility(View.VISIBLE);
   mGroupList.setAdapter(new HistoryGroupWrapper(mAdapter));
   mGroupList.setOnItemClickListener(mGroupItemClickListener);
   mGroupList.setChoiceMode(AbsListView.CHOICE_MODE_SINGLE);
   mChildWrapper = new HistoryChildWrapper(mAdapter);
   mChildList = new ListView(getActivity());
   mChildList.setAdapter(mChildWrapper);
   mChildList.setOnItemClickListener(mChildItemClickListener);
   registerForContextMenu(mChildList);
   ViewGroup prefs = (ViewGroup) mRoot.findViewById(R.id.prefs);
   prefs.addView(mChildList);
 }