コード例 #1
0
 protected void onDestroy() {
   MojiLog.v("WeatherMainActivity", "onDestroy");
   super.onDestroy();
   if (mWeathearTabCallBackImpl != null)
     WeatherTabPublisher.getInstance().unSubscribe(mWeathearTabCallBackImpl);
   mCityWeatherBgSwitcher.removeTimer();
   checkStopBroadcast();
 }
コード例 #2
0
 private void subscribeWeathertabCallBack() {
   if (mWeathearTabCallBackImpl == null)
     mWeathearTabCallBackImpl = new WeathearTabCheckedCallBackImpl();
   WeatherTabPublisher.getInstance().unSubscribe(mWeathearTabCallBackImpl);
   WeatherTabPublisher.getInstance().subscribe(mWeathearTabCallBackImpl);
 }