|
|
|
|
@ -563,7 +563,7 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen |
|
|
|
|
public Fragment getItem(int position) { |
|
|
|
|
if (position == 0) return new HomeFragment(); |
|
|
|
|
Class type = (Class) mAdapter.get(position); |
|
|
|
|
return VodFragment.newInstance(getHome().getKey(), type.getTypeId(), type.getStyle(), type.getExtend(false), type.getTypeFlag().equals("1")); |
|
|
|
|
return VodFragment.newInstance(getHome().getKey(), type.getTypeId(), type.getStyle(), type.getExtend(false), "1".equals(type.getTypeFlag())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@ -575,4 +575,4 @@ public class HomeActivity extends BaseActivity implements CustomTitleView.Listen |
|
|
|
|
public void destroyItem(@NonNull ViewGroup container, int position, @NonNull Object object) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|