|
|
@@ -66,9 +66,15 @@ class SystemSettingPresenter : BasePresenter<ISystemSettingView>() {
|
|
|
ToastUtils.tip(R.string.please_input_row)
|
|
|
return
|
|
|
}
|
|
|
- if (column.isEmpty()) {
|
|
|
- ToastUtils.tip(R.string.please_input_column)
|
|
|
- return
|
|
|
+ if (type == DOCK_TYPE_KEY) {
|
|
|
+ if (column.isEmpty()) {
|
|
|
+ ToastUtils.tip(R.string.please_input_column)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (column.toInt() != 1 || column.toInt() != 2) {
|
|
|
+ ToastUtils.tip(R.string.column_must_be_1_or_2)
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
if (dockList.any { it.row == row && it.column == column }) {
|
|
|
ToastUtils.tip(R.string.row_and_column_conflict)
|