|
@@ -41,6 +41,7 @@ import com.cooleshow.base.widgets.TabAnimationView;
|
|
|
import com.cooleshow.chatmodule.contract.IUnReadMessageObserver;
|
|
|
import com.cooleshow.chatmodule.manager.IMCenter;
|
|
|
import com.cooleshow.chatmodule.ui.ChatFragment;
|
|
|
+import com.cooleshow.chatmodule.utils.helper.IMThemManager;
|
|
|
import com.cooleshow.student.App;
|
|
|
import com.cooleshow.student.R;
|
|
|
import com.cooleshow.student.adapter.HomePageAdapter;
|
|
@@ -89,7 +90,7 @@ import static com.cooleshow.base.constanst.Constants.MAIN_PAGE_SELECT_POTION_KEY
|
|
|
public class MainActivity extends BaseMVPActivity<ActivityMainBinding, MainPresenter> implements MainContract.MainView {
|
|
|
|
|
|
private ArrayList<Fragment> mFragments = new ArrayList<>();
|
|
|
-// private HomeFragment mHomeFragment;
|
|
|
+ // private HomeFragment mHomeFragment;
|
|
|
private MineFragment mMineFragment;
|
|
|
private MallFragment shopMallFragment;
|
|
|
private TextView tvMsgCount;
|
|
@@ -98,7 +99,7 @@ public class MainActivity extends BaseMVPActivity<ActivityMainBinding, MainPrese
|
|
|
private boolean isNeedSetPushId = true;
|
|
|
private String floatViewEventUrl = "";
|
|
|
private MessageFragment mMessageFragment;
|
|
|
- private IUnReadMessageObserver mUnReadMessageObserver =new IUnReadMessageObserver(){
|
|
|
+ private IUnReadMessageObserver mUnReadMessageObserver = new IUnReadMessageObserver() {
|
|
|
@Override
|
|
|
public void onTotalUnreadMessageCountChanged(long totalUnreadCount) {
|
|
|
onCountChanged(totalUnreadCount);
|
|
@@ -175,7 +176,7 @@ public class MainActivity extends BaseMVPActivity<ActivityMainBinding, MainPrese
|
|
|
NewHomeFragment newHomeFragment = new NewHomeFragment();
|
|
|
CourseTableFragment courseTableFragment = new CourseTableFragment();
|
|
|
mMessageFragment = new MessageFragment();
|
|
|
- ChatFragment chatFragment =new ChatFragment();
|
|
|
+ ChatFragment chatFragment = new ChatFragment();
|
|
|
shopMallFragment = new MallFragment();
|
|
|
mMineFragment = new MineFragment();
|
|
|
mFragments.add(newHomeFragment);
|
|
@@ -252,6 +253,7 @@ public class MainActivity extends BaseMVPActivity<ActivityMainBinding, MainPrese
|
|
|
|
|
|
private void setStyleConfig() {
|
|
|
StyleConfig.isStudentStyle = true;
|
|
|
+ IMThemManager.getInstance().setEmptyDrawable(null);
|
|
|
}
|
|
|
|
|
|
/**
|