protected void onDestroy() { MojiLog.v("WeatherMainActivity", "onDestroy"); super.onDestroy(); if (mWeathearTabCallBackImpl != null) WeatherTabPublisher.getInstance().unSubscribe(mWeathearTabCallBackImpl); mCityWeatherBgSwitcher.removeTimer(); checkStopBroadcast(); }
private void subscribeWeathertabCallBack() { if (mWeathearTabCallBackImpl == null) mWeathearTabCallBackImpl = new WeathearTabCheckedCallBackImpl(); WeatherTabPublisher.getInstance().unSubscribe(mWeathearTabCallBackImpl); WeatherTabPublisher.getInstance().subscribe(mWeathearTabCallBackImpl); }