private void forFirstRun() { if (Gl.getIsFirstRun()) { if (!Gl.getAdON()) StatsService.checkAdSwitchAsync(); StatsUtil.setNextSendTime(false); if (PlayerUtil.isDataExpired()) { FileUtil.delFile(PlayerUtil.TTS_DATA_BG_PATH); Toast.makeText(Gl.Ct(), 0x7f0b0221, 1).show(); } } }
private void doUpdateResult(com.moji.mjweather.common.WeatherUpdater.Result result) { if (AbstractWeatherUpdater.isSucceed(result)) { CityWeatherInfo cityweatherinfo = WeatherData.getCityInfo(result.cityIndex); Gl.Ct() .deleteFile( (new StringBuilder()).append(cityweatherinfo.m_cityID).append(".txt").toString()); mWorkSpace.replaceCity(Gl.getCurrentCityIndex(), false); Gl.setNeedNotifyTrendState(true); } else { mCDialogManager.CancelCurrentDialog(); mCDialogManager.ShowMsgOKDialogFromString((String) result.errMsg); } cancelUpdateWeather(null, false); }