コード例 #1
0
 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();
     }
   }
 }
コード例 #2
0
 protected void onResume() {
   super.onResume();
   MojiLog.v("WeatherMainActivity", "onResume");
   if (android.os.Build.VERSION.SDK_INT > 4)
     if (mIsFromCityView) {
       mIsFromCityView = false;
       if (mCurrentCityIdx != Gl.getCurrentCityIndex()) {
         mCurrentCityIdx = Gl.getCurrentCityIndex();
         ((ViewGroup) findViewById(0x7f0d01d7)).startAnimation(mFadeAnim);
       }
     } else {
       ((ViewGroup) findViewById(0x7f0d01d7)).startAnimation(mFadeAnim);
     }
   StatsUtil.updateStatsPv(com.moji.mjweather.util.StatsUtil.StatsPv.PV_WW);
 }