[6.6.0] renote
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"mogo": {
|
||||
"C1":["driver"],
|
||||
"B1":["driver","passenger","bailing"],
|
||||
"B2":["driver","passenger"],
|
||||
"B1":["driver","passenger"],
|
||||
"B2":["driver","passenger","bailing"],
|
||||
"T1T2":["driver","passenger"],
|
||||
"ALL":["driver","passenger"]
|
||||
},
|
||||
@@ -19,8 +19,8 @@
|
||||
},
|
||||
"saas": {
|
||||
"T1T2":["driver","passenger"],
|
||||
"B1":["driver","passenger","bailing"],
|
||||
"B2":["driver","passenger"],
|
||||
"B1":["driver","passenger"],
|
||||
"B2":["driver","passenger","bailing"],
|
||||
"M1":["driver","passenger"],
|
||||
"ALL":["driver","passenger"]
|
||||
}
|
||||
|
||||
@@ -221,9 +221,9 @@ object DataManager {
|
||||
* 从本地数据库中查询数据
|
||||
*/
|
||||
fun queryAllMessages(context: Context) {
|
||||
// if (!ProcessUtils.isMainProcess(context)) {
|
||||
// return
|
||||
// }
|
||||
if (!ProcessUtils.isMainProcess(context)) {
|
||||
return
|
||||
}
|
||||
clearMessageBoxTable(context)
|
||||
scope.launch {
|
||||
initCache()
|
||||
|
||||
@@ -31,9 +31,9 @@ public abstract class MainMoGoApplication extends AbsMogoApplication {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
// if (!shouldInit()) {
|
||||
// return;
|
||||
// }
|
||||
if (!shouldInit()) {
|
||||
return;
|
||||
}
|
||||
start = System.currentTimeMillis();
|
||||
//启动业务
|
||||
CallerStartUpManager.initStageOne();
|
||||
|
||||
@@ -272,7 +272,7 @@ public final class ProcessUtils {
|
||||
return processName;
|
||||
}
|
||||
|
||||
public static boolean isMainProcess( Context context ) {
|
||||
public static boolean isMainProcess( Context context ) { //todo emArrow 多进程
|
||||
try {
|
||||
ActivityManager activityManager = ( ( ActivityManager ) context.getSystemService( Context.ACTIVITY_SERVICE ) );
|
||||
if ( activityManager == null ) {
|
||||
|
||||
@@ -49,9 +49,9 @@ public abstract class AbsMogoApplication extends Application {
|
||||
if (DebugConfig.isDebug()) {
|
||||
KoomInitTask.INSTANCE.init(AbsMogoApplication.getApp());
|
||||
}
|
||||
// if (!shouldInit()) {
|
||||
// return;
|
||||
// }
|
||||
if (!shouldInit()) {
|
||||
return;
|
||||
}
|
||||
AppStateManager.INSTANCE.init(this);
|
||||
initRxJavaErrorHandler();
|
||||
FinalizeCrashFixer.fix();
|
||||
|
||||
@@ -35,9 +35,9 @@ public abstract class MvpActivity<V extends IView, P extends Presenter<V>> exten
|
||||
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
|
||||
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
super.onCreate(savedInstanceState);
|
||||
// if (!ProcessUtils.isMainProcess(this)) {
|
||||
// return;
|
||||
// }
|
||||
if (!ProcessUtils.isMainProcess(this)) {
|
||||
return;
|
||||
}
|
||||
setContentView(getLayoutId());
|
||||
initViews();
|
||||
mPresenter = createPresenter();
|
||||
|
||||
Reference in New Issue
Block a user