|  | @@ -98,6 +98,8 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
 | 
	
		
			
				|  |  |          LayoutInflater inflater = LayoutInflater.from(getContext());
 | 
	
		
			
				|  |  |          View emptyLayout = inflater.inflate(R.layout.empty_mine_live_course, null);
 | 
	
		
			
				|  |  |          TextView tv_create = emptyLayout.findViewById(R.id.tv_create);
 | 
	
		
			
				|  |  | +        TextView tv_empty_hint = emptyLayout.findViewById(R.id.tv_empty_hint);
 | 
	
		
			
				|  |  | +        tv_empty_hint.setText(getEmptyText());
 | 
	
		
			
				|  |  |          tv_create.setOnClickListener(this);
 | 
	
		
			
				|  |  |          mineLiveCourseAdapter.setEmptyView(emptyLayout);
 | 
	
		
			
				|  |  |          rvAddress.setAdapter(mineLiveCourseAdapter);
 | 
	
	
		
			
				|  | @@ -194,7 +196,7 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void setUserVisibleHint(boolean isVisibleToUser) {
 | 
	
		
			
				|  |  |          super.setUserVisibleHint(isVisibleToUser);
 | 
	
		
			
				|  |  | -        if(isVisibleToUser && presenter!=null){
 | 
	
		
			
				|  |  | +        if (isVisibleToUser && presenter != null) {
 | 
	
		
			
				|  |  |              presenter.getTeacherUserInfo();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -232,4 +234,29 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    private String getEmptyText() {
 | 
	
		
			
				|  |  | +        if (TextUtils.equals(type, "ING")) {
 | 
	
		
			
				|  |  | +            //进行中
 | 
	
		
			
				|  |  | +            return "暂无进行中直播课程";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (TextUtils.equals(type, "NOT_SALE")) {
 | 
	
		
			
				|  |  | +            //未开始
 | 
	
		
			
				|  |  | +            return "暂无未上架直播课程";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (TextUtils.equals(type, "APPLY")) {
 | 
	
		
			
				|  |  | +            //申请中
 | 
	
		
			
				|  |  | +            return "暂无销售中直播课程";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (TextUtils.equals(type, "COMPLETE")) {
 | 
	
		
			
				|  |  | +            //已完成
 | 
	
		
			
				|  |  | +            return "暂无已完成直播课程";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (TextUtils.equals(type, "CANCEL")) {
 | 
	
		
			
				|  |  | +            //已取消
 | 
	
		
			
				|  |  | +            return "暂无已取消直播课程";
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return "暂无内容";
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |