| 
					
				 | 
			
			
				@@ -23,6 +23,7 @@ import com.cooleshow.base.utils.SizeUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.base.utils.UiUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.base.utils.Utils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.base.utils.helper.QMUIStatusBarHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.cooleshow.chatmodule.bean.ContactRoomListBean; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.chatmodule.utils.helper.IMThemManager; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.teacher.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.teacher.adapter.HomePagerAdapter; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,6 +34,7 @@ import com.cooleshow.teacher.databinding.ActivityHomePageNewLayoutBinding; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.teacher.presenter.homePage.HomePagePresenter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.teacher.widgets.AppBarLayoutStateChangeListener; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.teacher.widgets.dialog.BadgeDesDialog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.cooleshow.teacher.widgets.dialog.FansListDialog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.usercenter.bean.TeacherUserInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.cooleshow.usercenter.helper.UserHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.android.material.appbar.AppBarLayout; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,6 +45,7 @@ import com.zhy.view.flowlayout.TagAdapter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.ArrayList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Arrays; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import androidx.annotation.NonNull; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import androidx.annotation.Nullable; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -63,27 +66,20 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private int titleStyleMode = 1;//根据折叠展开状态控制title样式 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private AppBarLayoutStateChangeListener.State lastState = AppBarLayoutStateChangeListener.State.EXPANDED; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private List<ContactRoomListBean> fansList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private FansListDialog mFansListDialog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     protected void onCreate(@Nullable Bundle savedInstanceState) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         StyleConfig.setTheme(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         super.onCreate(savedInstanceState); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     protected void initView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //        Utils.setHeadView(viewBinding.viewStatusBar, this, 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         viewBinding.tvTitle.setText(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         viewBinding.toolbar.setNavigationIcon(com.cooleshow.base.R.drawable.icon_back_arrow_white); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        viewBinding.ivBack.setOnClickListener(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        viewBinding.ivEdit.setOnClickListener(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        viewBinding.toolbar.setNavigationOnClickListener(new View.OnClickListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            public void onClick(View v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                finish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         viewBinding.appBarLayout.addOnOffsetChangedListener(new AppBarLayoutStateChangeListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @Override 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -144,7 +140,7 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         initListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         VIPCustomCoursePageFragment vipCustomCoursePageFragment = new VIPCustomCoursePageFragment(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        InterestCorrectCoursePageFragment  interestCorrectCoursePageFragment = new InterestCorrectCoursePageFragment(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        InterestCorrectCoursePageFragment interestCorrectCoursePageFragment = new InterestCorrectCoursePageFragment(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         LiveCoursePageFragment liveCoursePageFragment = new LiveCoursePageFragment(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         VideoCoursePageFragment videoCoursePageFragment = new VideoCoursePageFragment(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         mMusicPageFragment = new SheetMusicPageFragment(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -161,6 +157,15 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void initListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        viewBinding.ivBack.setOnClickListener(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        viewBinding.ivEdit.setOnClickListener(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        viewBinding.toolbar.setNavigationOnClickListener(new View.OnClickListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            public void onClick(View v) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                finish(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        viewBinding.flFansGroup.setOnClickListener(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         viewBinding.tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             public void onTabSelected(TabLayout.Tab tab) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -213,6 +218,7 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     protected void onResume() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         super.onResume(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         presenter.getTeacherUserInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        presenter.getTeaGroupList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -232,6 +238,12 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ARouter.getInstance().build(RouterPath.MineCenter.MINE_STYLE_PAGE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .navigation(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (id == R.id.fl_fans_group){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //粉丝群 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            showFansListDialog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void showBadgeDialog() { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -265,10 +277,10 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (mMusicPageFragment != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             mMusicPageFragment.setMusicPersonCertStatus(info.entryStatus); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(TextUtils.isEmpty(info.getIntroduction())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (TextUtils.isEmpty(info.getIntroduction())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.tvIntroduce.setVisibility(View.GONE); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.selfIntroductionEmpty.setVisibility(View.VISIBLE); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.tvIntroduce.setText(info.getIntroduction()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.tvIntroduce.setVisibility(View.VISIBLE); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.selfIntroductionEmpty.setVisibility(View.GONE); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -301,6 +313,14 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public void getFunGroupList(List<ContactRoomListBean> list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!checkActivityExist()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.fansList = list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void addTagView() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         viewBinding.llSubjectContainer.removeAllViews(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (int i = 0; i < subjectNames.size(); i++) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -336,7 +356,7 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void updateCertStatusUI(String certStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (TextUtils.equals(certStatus, TeacherInfoConstants.ENTRY_STATUS_PASS)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.ivCertStatus.setImageResource(R.drawable.icon_cert_completed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             viewBinding.ivCertStatus.setImageResource(R.drawable.icon_go_cert); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -350,4 +370,14 @@ public class HomePageActivity extends BaseMVPActivity<ActivityHomePageNewLayoutB 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         textView.setBackgroundResource(com.cooleshow.base.R.drawable.shape_33ffffff_10dp); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return textView; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private void showFansListDialog() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (mFansListDialog == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mFansListDialog = new FansListDialog(this); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (!mFansListDialog.isShowing()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mFansListDialog.show(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        mFansListDialog.setData(fansList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |