| | |
| | | getDB().accreditOffBtn.setBackgroundResource(R.mipmap.btn_less_normal); |
| | | } |
| | | }else { |
| | | //删除激活文件 |
| | | FileUtils.deleteFile(filePath); |
| | | getDB().btnDown.setText("待后台上传激活文件"); |
| | | getDB().btnDown.setClickable(false); |
| | | getDB().btnDown.setBackgroundResource(R.mipmap.btn_less_normal); |
| | | |
| | | getDB().accreditOffBtn.setClickable(false); |
| | | getDB().accreditOffBtn.setBackgroundResource(R.mipmap.btn_less_normal); |
| | | if(FileUtil.FileIsExist(filePath)) { |
| | | getDB().accreditOffBtn.setClickable(true); |
| | | getDB().accreditOffBtn.setBackgroundResource(R.mipmap.btn_main_normal); |
| | | }else { |
| | | getDB().accreditOffBtn.setClickable(false); |
| | | getDB().accreditOffBtn.setBackgroundResource(R.mipmap.btn_less_normal); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | ToastView.show(MApplication.mContext,"下载中..."); |
| | | return; |
| | | } |
| | | //删除激活文件 |
| | | FileUtils.deleteFile(filePath); |
| | | if(!TextUtils.isEmpty(MApplication.getConfigBean().getActivateFileUrl())){ |
| | | isDownLoad = true; |
| | | startDownload(MApplication.getConfigBean().getActivateFileUrl()); |