void setContent(final ListItem li, final UidPolicy up) {
    if (getActivity() instanceof FragmentActivity) {
      LogFragment l = new LogFragment();
      l.getInternal().setUidPolicy(up);
      l.getInternal().setListContentId(getFragment().getId());
      mContent = l;
    } else {
      mContent = setContentNative(li, up);
    }

    setContent(mContent, up == null, up == null ? getString(R.string.logs) : up.getName());
  }
  void addPolicy(final UidPolicy up, final int last) {
    java.text.DateFormat df = DateFormat.getLongDateFormat(getActivity());
    String date;
    if (last == 0) date = null;
    else date = df.format(getLastDate(last));
    ListItem li =
        addItem(
            up.getPolicyResource(),
            new ListItem(this, up.name, date) {
              public void onClick(View view) {
                super.onClick(view);

                setContent(this, up);
              };
            });

    Drawable icon = Helper.loadPackageIcon(getActivity(), up.packageName);
    if (icon == null) li.setIcon(R.drawable.ic_launcher);
    else li.setDrawable(icon);
  }