Browse Source

增加老师端美颜逻辑处理

Pq 2 years ago
parent
commit
6374f9de0d

+ 6 - 2
teacher/src/main/java/com/cooleshow/teacher/widgets/dialog/LiveBeautyOptionsDialog.java

@@ -96,9 +96,13 @@ public class LiveBeautyOptionsDialog extends Dialog implements LiveBeautyOptions
             @Override
             public void onTabSelected(TabLayout.Tab tab) {
                 if (tab.getPosition() != 0) {
-                    mSeekBar.setVisibility(View.GONE);
+                    mSeekBar.setVisibility(View.INVISIBLE);
                 } else {
-                    mSeekBar.setVisibility(View.VISIBLE);
+                    if (LiveRoomBeautyHelper.getInstance().isOpenBeauty()) {
+                        mSeekBar.setVisibility(View.VISIBLE);
+                    } else {
+                        mSeekBar.setVisibility(View.INVISIBLE);
+                    }
                 }
                 if (tab != null && tab.getCustomView() != null) {
                     View customView = tab.getCustomView();

+ 2 - 2
teacher/src/main/res/layout/fragment_live_beauty_layout.xml

@@ -12,7 +12,7 @@
         android:layout_height="wrap_content"
         android:layout_marginStart="27dp"
         android:layout_marginTop="40dp"
-        android:src="@drawable/icon_live_beauty_off"
+        android:src="@drawable/icon_live_beauty_on"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
 
@@ -21,7 +21,7 @@
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:paddingTop="23dp"
-        android:text="已关闭"
+        android:text="已开启"
         android:textColor="@color/white"
         android:textSize="@dimen/sp_11"
         app:layout_constraintLeft_toLeftOf="@+id/iv_switch_live_beauty"