| | |
| | | } |
| | | pop.contentView.find<View>(R.id.tv_ok_server_mode).setOnClickListener { |
| | | if (adapter.getAllMode().isEmpty()){ |
| | | ToastUtils.showShortToast(context,"请选择内容") |
| | | ToastUtils.showShortToast(context,context.getString(R.string.请选择内容)) |
| | | return@setOnClickListener |
| | | } |
| | | pop.dismiss() |
| | |
| | | } |
| | | pop.contentView.find<View>(R.id.tv_ok_server_mode).setOnClickListener { |
| | | if (adapter.selectPosition==-1){ |
| | | ToastUtils.showShortToast(context,"请选择内容") |
| | | ToastUtils.showShortToast(context,context.getString(R.string.请选择内容)) |
| | | return@setOnClickListener |
| | | } |
| | | pop.dismiss() |
| | |
| | | } |
| | | pop.contentView.find<View>(R.id.tv_ok_server_mode).setOnClickListener { |
| | | if (adapter.getSelectId().isEmpty()){ |
| | | ToastUtils.showShortToast(context,"请选择内容") |
| | | ToastUtils.showShortToast(context,context.getString(R.string.请选择内容)) |
| | | return@setOnClickListener |
| | | } |
| | | pop.dismiss() |