LinkedModel 删除 EventBus register

This commit is contained in:
huangjian
2020-12-03 11:33:28 +08:00
parent 27daab4ddc
commit cbbe8b69ce
3 changed files with 1 additions and 19 deletions

View File

@@ -231,20 +231,9 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
private LivingIconView userLivingView;
private View viewClose;
private FloatingLiveMiniView floatingLiveMiniView;
private MainTabLayout mMainTabLayout;
private int mCurrentMainPosition = MainTabLayout.MAIN_TAB_POS_HOME;
/**
* 是否需要预加载homeby lvzebiao v3.1.2
* 因为首页标签添加帧动画,防止,第一次点击标签过于卡顿
*/
private final static boolean PRELOAD_HOME = false;
/**
* 保存登录的次数
*/
private LongSparseArray<Integer> loginCountMap = new LongSparseArray<>(1);
/**
* 房间最小化动画换成属性动画原先的补间动画影响了activity的生命周期
@@ -255,8 +244,6 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
*/
private LimitEnterRoomHelper limitEnterRoomHelper;
GestureDetector detector;
public static void start(Context context) {
start(context, null);

View File

@@ -129,9 +129,7 @@ public class AppBarLayoutBehavior extends AppBarLayout.Behavior {
if (overScroller != null && !overScroller.isFinished()) {
overScroller.abortAnimation();
}
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
} catch (Exception e) {
e.printStackTrace();
}
}

View File

@@ -3,8 +3,6 @@ package com.yizhuan.xchat_android_core.linked;
import com.yizhuan.xchat_android_core.base.BaseModel;
import com.yizhuan.xchat_android_core.linked.bean.LinkedInfo;
import org.greenrobot.eventbus.EventBus;
public class LinkedModel extends BaseModel implements ILinkedModel{
private LinkedInfo linkedInfo;
@@ -23,7 +21,6 @@ public class LinkedModel extends BaseModel implements ILinkedModel{
}
private LinkedModel() {
EventBus.getDefault().register(this);
}