|
|
@@ -442,15 +442,15 @@ public class ConnectServerFragment extends BaseFragment implements View.OnClickL
|
|
|
|
|
|
//判断是否是正确的port地址
|
|
|
boolean portRight = RegexUtil.checkString(port, RegexUtil.PORT_FORMAT);
|
|
|
-
|
|
|
- if (!portRight) {
|
|
|
- //Prot不正确,文字变红
|
|
|
- portEditText.setTextColor(getResources().getColor(R.color.red));
|
|
|
- uriRight = false;
|
|
|
- ((ClearableEditText) portEditText).setWarnIconVisible();
|
|
|
- } else {
|
|
|
- uriRight = true;
|
|
|
- }
|
|
|
+ uriRight = true;
|
|
|
+// if (!portRight) {
|
|
|
+// //Prot不正确,文字变红
|
|
|
+// portEditText.setTextColor(getResources().getColor(R.color.red));
|
|
|
+// uriRight = false;
|
|
|
+// ((ClearableEditText) portEditText).setWarnIconVisible();
|
|
|
+// } else {
|
|
|
+// uriRight = true;
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
//拼接IP地址
|