Exemplo n.º 1
0
  void initView() {

    mInflater = LayoutInflater.from(this);
    tempCikuName = ConfigManager.getCurCiku(this);
    tempCnName = Global.gCurTableName.ciku_name;
    tempOrderType = ConfigManager.getOrderType(mCxt);
    tempNewsCount = ConfigManager.getWordEveryDayNum(mCxt);
    OkBtn = (Button) findViewById(R.id.study_plan_activity_ok_btn);
    OkBtn.setOnClickListener(this);
    cikuRy = (RelativeLayout) findViewById(R.id.study_plane_activity_ciku_ry);
    cikuRy.setOnClickListener(this);
    orderRy = (RelativeLayout) findViewById(R.id.study_plane_activity_order_ry);
    orderRy.setOnClickListener(this);
    dayWordRy = (RelativeLayout) findViewById(R.id.study_plane_activity_new_ry);
    dayWordRy.setOnClickListener(this);

    backLy = (LinearLayout) findViewById(R.id.shudy_plan_activity_ly);
    backLy.setOnClickListener(this);

    cikuText = (TextView) findViewById(R.id.study_plane_activity_ciku_text);
    orderText = (TextView) findViewById(R.id.study_plane_activity_order_text);
    newText = (TextView) findViewById(R.id.study_plane_activity_new_text);

    setCikuDefultText();
    setNewDefultText();
    setOrderDefultText();
  }
Exemplo n.º 2
0
 private boolean isNeedDialog() {
   if ((!tempCikuName.equals(ConfigManager.getCurCiku(this)))
       || tempNewsCount != ConfigManager.getWordEveryDayNum(mCxt)
       || tempOrderType != ConfigManager.getOrderType(mCxt)) {
     return true;
   } else {
     return false;
   }
 }
Exemplo n.º 3
0
 /** 重置学习计划 */
 private void resetStudyData() {
   ConfigManager.saveCurCiku(StudyPlaneActivity.this, tempCikuName);
   ConfigManager.setOrderType(StudyPlaneActivity.this, tempOrderType);
   ConfigManager.setWordEveryDayNum(StudyPlaneActivity.this, tempNewsCount);
   LockConfigMgr.setLockSize(StudyPlaneActivity.this, 0);
   // 更新
   Global.updataNoRememberList();
   Global.updataRemember();
   Global.updataReviewlsit();
   Global.updataCurTableName();
   Global.gWordData.setDBName(tempCikuName);
   mSm.resetDayListData(mCxt);
 }