Skip to content

Commit dd52e39

Browse files
committed
update
1 parent 3b7ab6c commit dd52e39

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

uikit/src/main/java/cn/wildfire/chat/kit/voip/conference/CreateConferenceActivity.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
import android.text.Editable;
99
import android.text.TextUtils;
1010
import android.widget.Button;
11-
import android.widget.Switch;
1211
import android.widget.Toast;
1312

13+
import com.google.android.material.switchmaterial.SwitchMaterial;
14+
1415
import butterknife.BindView;
1516
import butterknife.OnClick;
1617
import butterknife.OnTextChanged;
@@ -26,10 +27,10 @@ public class CreateConferenceActivity extends WfcBaseActivity {
2627
FixedTextInputEditText titleEditText;
2728
@BindView(R2.id.conferenceDescTextInputEditText)
2829
FixedTextInputEditText descEditText;
29-
@BindView((R2.id.audioOnlySwitch))
30-
Switch audioOnlySwitch;
30+
@BindView((R2.id.videoSwitch))
31+
SwitchMaterial videoSwitch;
3132
@BindView((R2.id.audienceSwitch))
32-
Switch audienceSwitch;
33+
SwitchMaterial audienceSwitch;
3334
@BindView(R2.id.createConferenceBtn)
3435
Button createButton;
3536

@@ -63,7 +64,7 @@ void conferenceDescChannelName(Editable editable) {
6364

6465
@OnClick(R2.id.createConferenceBtn)
6566
public void onClickCreateBtn() {
66-
boolean audioOnly = audioOnlySwitch.isChecked();
67+
boolean audioOnly = !videoSwitch.isChecked();
6768
boolean audience = audienceSwitch.isChecked();
6869
String title = titleEditText.getText().toString();
6970
String desc = descEditText.getText().toString();

uikit/src/main/res/layout/conference_create_activity.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,28 @@
3535
android:singleLine="true" />
3636
</com.google.android.material.textfield.TextInputLayout>
3737

38-
<Switch
39-
android:id="@+id/audioOnlySwitch"
38+
<com.google.android.material.switchmaterial.SwitchMaterial
39+
android:id="@+id/videoSwitch"
4040
android:layout_width="match_parent"
4141
android:layout_height="wrap_content"
42+
android:checked="true"
4243
android:padding="20dp"
43-
android:text="AudioOnly" />
44+
android:text="开启视频" />
4445

45-
<Switch
46+
<com.google.android.material.switchmaterial.SwitchMaterial
4647
android:id="@+id/audienceSwitch"
4748
android:layout_width="match_parent"
4849
android:layout_height="wrap_content"
50+
android:checked="true"
4951
android:padding="20dp"
50-
android:text="Audience" />
52+
android:text="互动会议" />
5153

5254
<Button
5355
android:id="@+id/createConferenceBtn"
5456
android:layout_width="match_parent"
55-
android:enabled="false"
5657
android:layout_height="wrap_content"
5758
android:layout_margin="20dp"
58-
android:text="创建会议" />
59+
android:enabled="false"
60+
android:text="开始会议" />
5961

6062
</LinearLayout>

0 commit comments

Comments
 (0)