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(); }
private boolean isNeedDialog() { if ((!tempCikuName.equals(ConfigManager.getCurCiku(this))) || tempNewsCount != ConfigManager.getWordEveryDayNum(mCxt) || tempOrderType != ConfigManager.getOrderType(mCxt)) { return true; } else { return false; } }