private void addUmengAd() {
    mExchangeViewManager = new ExchangeViewManager(this);
    if (sReportListner == null)
      sReportListner =
          new com.adm.controller.ReportThread.ReportListener() {

            public void onReportEnd(int i) {
              MojiLog.d("WeatherMainActivity", "onReportEnd");
            }

            public void onReportStart(Map map) {
              StringBuffer stringbuffer = new StringBuffer();
              Iterator iterator = map.keySet().iterator();
              do {
                if (!iterator.hasNext()) break;
                String s = (String) iterator.next();
                MojiLog.d("exchange_demo", stringbuffer.toString());
                stringbuffer.append(
                    (new StringBuilder())
                        .append(s)
                        .append(": ")
                        .append(map.get(s).toString())
                        .toString());
                if (stringbuffer.toString().equals("action_type: 3")
                    || stringbuffer.toString().equals("action_type: 7")) {
                  StatsUtil.updateStatsAdDown();
                  MojiLog.d("WeatherMainActivity", "AdDown + 1");
                } else if (stringbuffer.toString().equals("action_type: 0")) {
                  StatsUtil.updateStatsAdView();
                  MojiLog.d("WeatherMainActivity", "AdArea + 1");
                }
              } while (true);
            }
          };
    ReportThread.unregisterReportListener(sReportListner);
    ReportThread.registerReportListener(sReportListner);
    ExchangeConstants.ONLY_CHINESE = false;
    MojiLog.d(
        "WeatherMainActivity",
        (new StringBuilder()).append("AdOn = ").append(Gl.getAdON()).toString());
    if (Gl.getAdON()) {
      mAdUmeng.setVisibility(0);
      Drawable drawable = getResources().getDrawable(0x7f02016d);
      ExchangeViewManager exchangeviewmanager = mExchangeViewManager;
      ImageView imageview = mAdUmeng;
      Drawable adrawable[] = new Drawable[1];
      adrawable[0] = drawable;
      exchangeviewmanager.addView(7, imageview, adrawable);
    } else {
      mAdUmeng.setVisibility(8);
    }
  }
 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();
     }
   }
 }