[Fix]
修复启动时tanlu模块未初始化导致异常 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.mogo.module.common.error;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.alibaba.android.arouter.facade.Postcard;
|
||||
import com.alibaba.android.arouter.facade.service.DegradeService;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
/**
|
||||
* 自定义当个 ARouter 加载失败的服务
|
||||
* @author donghongyu
|
||||
*/
|
||||
public class ARoutDegradeService implements DegradeService {
|
||||
private String TAG = this.getClass().getSimpleName();
|
||||
|
||||
@Override
|
||||
public void onLost(Context context, Postcard postcard) {
|
||||
Logger.w(TAG, "postcard:" + postcard);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(Context context) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user