tv_dialog_content = (TextView) dialogView.findViewById(R.id.tv_dialog_content);
bt_ok = (Button) dialogView.findViewById(R.id.bt_ok);
bt_cancel = (Button) dialogView.findViewById(R.id.bt_cancel);
final CheckBox ck_state= (CheckBox) dialogView.findViewById(R.id.ck_state);
tv_dialog_content.setText(content);
bt_ok.setText(changeOk);
bt_cancel.setText(changeCancle);
boolean isCheckedState= sharedPreferences.getBoolean(Constant.ISCHECKSTATE, false);
if (flag){
ck_state.setVisibility(View.VISIBLE);
/*获取开关蓝牙状态 改变单选框选中状态/
if (isCheckedState){
ck_state.setChecked(isCheckedState);
}else{
ck_state.setChecked(isCheckedState);
}
//CheckBox点击事件
ck_state.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton but