LinkedModel 删除 EventBus register
This commit is contained in:
@@ -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;
|
||||
/**
|
||||
* 是否需要预加载home,by 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);
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user