From dd52e3967f31bd5c8b125e70e35b1336111cb20d Mon Sep 17 00:00:00 2001 From: imndx Date: Mon, 8 Mar 2021 15:39:07 +0800 Subject: [PATCH] update --- .../conference/CreateConferenceActivity.java | 11 ++++++----- .../res/layout/conference_create_activity.xml | 16 +++++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/uikit/src/main/java/cn/wildfire/chat/kit/voip/conference/CreateConferenceActivity.java b/uikit/src/main/java/cn/wildfire/chat/kit/voip/conference/CreateConferenceActivity.java index 11002e087..c794c71d7 100644 --- a/uikit/src/main/java/cn/wildfire/chat/kit/voip/conference/CreateConferenceActivity.java +++ b/uikit/src/main/java/cn/wildfire/chat/kit/voip/conference/CreateConferenceActivity.java @@ -8,9 +8,10 @@ import android.text.Editable; import android.text.TextUtils; import android.widget.Button; -import android.widget.Switch; import android.widget.Toast; +import com.google.android.material.switchmaterial.SwitchMaterial; + import butterknife.BindView; import butterknife.OnClick; import butterknife.OnTextChanged; @@ -26,10 +27,10 @@ public class CreateConferenceActivity extends WfcBaseActivity { FixedTextInputEditText titleEditText; @BindView(R2.id.conferenceDescTextInputEditText) FixedTextInputEditText descEditText; - @BindView((R2.id.audioOnlySwitch)) - Switch audioOnlySwitch; + @BindView((R2.id.videoSwitch)) + SwitchMaterial videoSwitch; @BindView((R2.id.audienceSwitch)) - Switch audienceSwitch; + SwitchMaterial audienceSwitch; @BindView(R2.id.createConferenceBtn) Button createButton; @@ -63,7 +64,7 @@ void conferenceDescChannelName(Editable editable) { @OnClick(R2.id.createConferenceBtn) public void onClickCreateBtn() { - boolean audioOnly = audioOnlySwitch.isChecked(); + boolean audioOnly = !videoSwitch.isChecked(); boolean audience = audienceSwitch.isChecked(); String title = titleEditText.getText().toString(); String desc = descEditText.getText().toString(); diff --git a/uikit/src/main/res/layout/conference_create_activity.xml b/uikit/src/main/res/layout/conference_create_activity.xml index f93bdc7c1..7ebe0c3db 100644 --- a/uikit/src/main/res/layout/conference_create_activity.xml +++ b/uikit/src/main/res/layout/conference_create_activity.xml @@ -35,26 +35,28 @@ android:singleLine="true" /> - + android:text="开启视频" /> - + android:text="互动会议" />