| | |
| | | import com.google.gson.reflect.TypeToken; |
| | | import com.lcjian.library.util.common.StringUtils; |
| | | import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator; |
| | | import com.video.youth.entity.YouthModeChange; |
| | | import com.viewpagerindicator.IconPagerAdapter; |
| | | import com.viewpagerindicator.MainTabPageIndicator; |
| | | import com.weikou.beibeivideo.BasicTextHttpResponseHandler; |
| | |
| | | import com.weikou.beibeivideo.R; |
| | | import com.weikou.beibeivideo.entity.JumpDetail; |
| | | import com.weikou.beibeivideo.entity.VideoType; |
| | | import com.weikou.beibeivideo.entity.ad.SplashAdLoadInfo; |
| | | import com.weikou.beibeivideo.entity.recommend.HomeClass; |
| | | import com.weikou.beibeivideo.entity.recommend.HomeTabChangeInfo; |
| | | import com.weikou.beibeivideo.ui.MyRetainViewFragment; |
| | |
| | | super.onCreate(savedInstanceState); |
| | | if (!BeibeiConstant.IS_TEST) |
| | | showFloatImgAd(); |
| | | EventBus.getDefault().register(this); |
| | | } |
| | | |
| | | |
| | |
| | | @Override |
| | | public void onResume() { |
| | | super.onResume(); |
| | | EventBus.getDefault().register(this); |
| | | if (needRefresh) { |
| | | needRefresh = false; |
| | | getCategories(); |
| | | } |
| | | } |
| | | |
| | | private static boolean needRefresh = false; |
| | | |
| | | @Subscribe |
| | | public void onEventMainThread(YouthModeChange change) { |
| | | needRefresh = true; |
| | | |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public void onPause() { |
| | | super.onPause(); |
| | | EventBus.getDefault().unregister(this); |
| | | } |
| | | |
| | | @Subscribe |
| | |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void onDestroy() { |
| | | super.onDestroy(); |
| | | EventBus.getDefault().unregister(this); |
| | | } |
| | | } |