@Override protected NetWorthListBean doInBackground(String... params) { // TODO Auto-generated method stub try { NetWorthListBean nBeanCache = (NetWorthListBean) AppFrame.getApp().getMapObj(Map_Search_GM); if (nBeanCache == null) { NetWorthListBean nBeanGm = DbOperat.getInstance().searchAll(null, false); NetWorthListBean nBeanSm = DbOperat.getInstance().searchAll(null, true); nBeanGm = numbersAndlettersToEnd(nBeanGm); nBeanSm = numbersAndlettersToEnd(nBeanSm); AppFrame.getApp().getMapObj().put(Map_Search_GM, nBeanGm); AppFrame.getApp().getMapObj().put(Map_Search_Sm, nBeanSm); return nBeanGm; } else { return nBeanCache; } } catch (WrapException e) { } return null; }
@Override protected void initViewAdAction(View root, Bundle bundle) { // TODO Auto-generated method stub mViewPager = (CanScrollViewPager) root.findViewById(R.id.viewpager); mContentLayout = (LinearLayout) root.findViewById(R.id.content_lay); mIndicator = (PagerSlidingTabStrip) root.findViewById(R.id.indicator); mProgressBar = (ProgressBar) root.findViewById(R.id.progressbar); mFragmentManager = getChildFragmentManager(); NetWorthListBean nBeanCacheGm = (NetWorthListBean) AppFrame.getApp().getMapObj(Map_Search_GM); bundle = bundle == null ? getArguments() : bundle; mIntentType = bundle.getInt(ValConfig.IT_TYPE); if (nBeanCacheGm == null) { new CacheTask().execute(false); } else { mProgressBar.setVisibility(View.GONE); mContentLayout.setVisibility(View.VISIBLE); buildPage(); } }
@Override public void onPause() { super.onPause(); FundUtils.exeOptional(AppFrame.getApp()); }