@Override
  public void preInit(Bundle savedInstanceState) {
    super.preInit(savedInstanceState);
    parentFragment = this;

    String description;
    if (kernelContent != null && (description = kernelContent.getShortDescription()) != null)
      descriptionText.setText(Html.fromHtml(description));
    logoContainer = ((KernelActivity) getActivity()).getLogoContainer();
    toolbar = ((KernelActivity) getActivity()).getToolbar();
    animation = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_out);
    animation.setAnimationListener(
        new Animation.AnimationListener() {
          @Override
          public void onAnimationStart(Animation animation) {
            descriptionText.setVisibility(View.GONE);
          }

          @Override
          public void onAnimationEnd(Animation animation) {
            viewContainerBackground.setBackgroundColor(Color.TRANSPARENT);
          }

          @Override
          public void onAnimationRepeat(Animation animation) {}
        });
  }
  @Override
  public void init(Bundle savedInstanceState) {
    super.init(savedInstanceState);

    if (kernelContent != null)
      addFragment(
          new ViewPagerItem(
              DownloadRecyclerViewFragment.InfoFragment.newInstance(kernelContent),
              getString(R.string.information)));

    List<Downloads.Feature> features;
    if (kernelContent != null && (features = kernelContent.getFeatures()).size() > 0)
      addFragment(
          new ViewPagerItem(
              DownloadRecyclerViewFragment.FeaturesFragment.newInstance(features),
              getString(R.string.features)));

    List<Downloads.Download> downloads;
    if (kernelContent != null && (downloads = kernelContent.getDownloads()).size() > 0)
      addFragment(
          new ViewPagerItem(
              DownloadRecyclerViewFragment.DownloadFragment.newInstance(downloads),
              getString(R.string.download)));
  }
 @Override
 public void onSwipe(int page) {
   super.onSwipe(page);
   for (int i = 0; i < getCount(); i++)
     ((DownloadRecyclerViewFragment) getFragment(i)).resetTranslations();
 }