|
@@ -9,6 +9,7 @@ import android.widget.TextView;
|
|
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
|
|
import com.cooleshow.base.common.BaseApplication;
|
|
|
import com.cooleshow.base.constanst.LoginStatusConstants;
|
|
|
+import com.cooleshow.base.constanst.StyleConfig;
|
|
|
import com.cooleshow.base.event.LoginStatusEvent;
|
|
|
import com.cooleshow.base.router.RouterPath;
|
|
|
import com.cooleshow.base.ui.activity.BaseActivity;
|
|
@@ -49,7 +50,7 @@ public class MainActivity extends BaseMVPActivity<ActivityInstitutionMainLayoutB
|
|
|
private ChatFragment mChatFragment;
|
|
|
private HomeFragment mHomeFragment;
|
|
|
private boolean isNeedSetPushId = true;
|
|
|
- private IUnReadMessageObserver mUnReadMessageObserver =new IUnReadMessageObserver(){
|
|
|
+ private IUnReadMessageObserver mUnReadMessageObserver = new IUnReadMessageObserver() {
|
|
|
@Override
|
|
|
public void onTotalUnreadMessageCountChanged(long totalUnreadCount) {
|
|
|
onCountChanged(totalUnreadCount);
|
|
@@ -83,10 +84,15 @@ public class MainActivity extends BaseMVPActivity<ActivityInstitutionMainLayoutB
|
|
|
@Override
|
|
|
public void initData() {
|
|
|
super.initData();
|
|
|
+ setStyleConfig();
|
|
|
requestPermission();
|
|
|
IMCenter.getInstance().addUnReadMessageObserver(mUnReadMessageObserver);
|
|
|
}
|
|
|
|
|
|
+ private void setStyleConfig() {
|
|
|
+ StyleConfig.isStudentStyle = false;
|
|
|
+ }
|
|
|
+
|
|
|
public void onTabClick(View view) {
|
|
|
int id = view.getId();
|
|
|
if (id == R.id.view_home) {
|
|
@@ -120,9 +126,9 @@ public class MainActivity extends BaseMVPActivity<ActivityInstitutionMainLayoutB
|
|
|
}
|
|
|
|
|
|
public void updateBottomTabStyle(boolean isBlack) {
|
|
|
- if(isBlack){
|
|
|
+ if (isBlack) {
|
|
|
QMUIStatusBarHelper.setStatusBarDarkMode(this);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
QMUIStatusBarHelper.setStatusBarLightMode(this);
|
|
|
}
|
|
|
viewBinding.csBottom.setBackgroundColor(getResources().getColor(isBlack ? R.color.color_121b2e : com.cooleshow.base.R.color.white));
|