public static MoviesFragment newInstance(TmdbCategory category) { MoviesFragment f = new MoviesFragment(); Bundle args = new Bundle(); args.putInt(InitBundle.TMDB_CATEGORY, category.index); f.setArguments(args); return f; }