a
554325746@qq.com
2019-12-25 603cb36a5123e46656b06a5deb8d7ac7ff81307f
app/src/main/java/com/basic/security/fragment/ClusterFragment.java
@@ -40,7 +40,7 @@
    @ViewById
    RadioButton only_allow, no_limit;
    @ViewById
    EditText cluster_name, cluster_id, cluster_cookie, cluster_ip;
    EditText cluster_name, cluster_id, cluster_cookie, cluster_ip, node_id, node_name;
    @ViewById
    ClusterRoundView round_view;
    @ViewById
@@ -55,6 +55,7 @@
    @AfterViews
    public void afterViews() {
        lv_device_list.addHeaderView(View.inflate(getContext(), com.basic.security.utils.ResolutionAdaptation.cluster_setting_list_head(), null));
    }
    public void queryDeviceList() {
@@ -85,6 +86,8 @@
        }
        cluster_cookie.setText(password);
        cluster_ip.setText(cluster.getString(ClusterSetting.other_node_ip));
        node_id.setText(cluster.getString(ClusterSetting.node_id));
        node_name.setText(cluster.getString(ClusterSetting.node_name));
        isCreateCluster = true;
        deviceListAdapter = new DeviceListAdapter();
        lv_device_list.setAdapter(deviceListAdapter);
@@ -102,6 +105,16 @@
        String cluster_id = this.cluster_id.getText().toString().trim();
        String password = this.cluster_cookie.getText().toString().trim();
        String cluster_ip = this.cluster_ip.getText().toString().trim();
        String node_id = this.node_id.getText().toString().trim();
        String node_name = this.node_name.getText().toString().trim();
        if (TextUtils.isEmpty(node_id)) {
            ToastUtil.show("请输入节点ID");
            return;
        }
        if (TextUtils.isEmpty(node_name)) {
            ToastUtil.show("请输入节点名称");
            return;
        }
        if (TextUtils.isEmpty(cluster_name)) {
            ToastUtil.show("请输入集群名称");
            return;