Android Open Source - EnklawaPlayer Downloaded Episodes Nav Item

From Project

Back to project page EnklawaPlayer.


The source code is released under:

GNU General Public License

If you think the Android project EnklawaPlayer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package macbury.pod.navigation_drawer.items;
/*from   w ww .ja  v  a2 s . c om*/
import android.content.Context;

import be.webelite.ion.Icon;
import macbury.pod.R;
import macbury.pod.fragments.main.episodes.DownloadedEpisodesFragment;
import macbury.pod.managers.App;

 * Created by macbury on 11.09.14.
public class DownloadedEpisodesNavItem extends NavItemFragment {
  private DownloadedEpisodesFragment fragment;

  public DownloadedEpisodesNavItem(Context context) {

  public String getTitle() {
    return context.getString(R.string.nav_downloaded_episodes);

  public Icon getIcon() {
    return Icon.ion_android_download;

  public Fragment getFragment() {
    if (fragment == null) {
      fragment = new DownloadedEpisodesFragment();
    return fragment;

  public int getCount() {
    return App.current().db.episodeFiles.countDownloadedOrPendingOrFailed();

  public int getColorResource() {
    return context.getResources().getColor(R.color.downloaded_episodes);

Java Source Code List