Browse Source

欢迎页点击崩溃问题

炒锅机器人_一拖多
liup 1 month ago
parent
commit
30a1becded
3 changed files with 10 additions and 2 deletions
  1. +6
    -0
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java
  2. +0
    -2
      app/src/main/java/com/bonait/bnframework/business/MainInit.java
  3. +4
    -0
      app/src/main/java/com/bonait/bnframework/newui/activity/WelcomeActivity.java

+ 6
- 0
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java View File

@@ -26,6 +26,7 @@ import com.bonait.bnframework.newui.widget.NewToastUtil;
import org.greenrobot.eventbus.EventBus;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -41,6 +42,11 @@ public class ExecuteTheRecipe {
public static int whileTime = 300;

public static void reset1(){
Arrays.fill(ConfigName.IsForcedEnd, false);
Arrays.fill(ConfigName.IsPause, false);
Arrays.fill(ConfigName.MakeStatus, false);
Arrays.fill(ConfigName.IsStart, false);

ConfigName.IsForcedEnd[0] = false;
ConfigName.IsForcedEnd[1] = false;
ConfigName.IsPause[0] = false;


+ 0
- 2
app/src/main/java/com/bonait/bnframework/business/MainInit.java View File

@@ -72,8 +72,6 @@ public class MainInit {
// activity生命周期管理
ActivityLifecycleManager.get().init(app);

// QMUI 框架初始化
QMUISwipeBackActivityManager.init(app);

// LitePal 数据库初始化
LitePal.initialize(app);


+ 4
- 0
app/src/main/java/com/bonait/bnframework/newui/activity/WelcomeActivity.java View File

@@ -20,6 +20,7 @@ import com.bonait.bnframework.common.utils.ScreenUtils;
import com.bonait.bnframework.manager.ActivityLifecycleManager;
import com.bonait.bnframework.test.TestActivity;
import com.lzy.okgo.OkGo;
import com.qmuiteam.qmui.arch.QMUISwipeBackActivityManager;

import okhttp3.OkHttpClient;
import pub.devrel.easypermissions.EasyPermissions;
@@ -39,6 +40,9 @@ public class WelcomeActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// QMUI 框架初始化
QMUISwipeBackActivityManager.init(ConfigName.getInstance().app);
setContentView(R.layout.activity_welcome);

DisplayMetrics dm = new DisplayMetrics();


Loading…
Cancel
Save