|
@@ -81,7 +81,7 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
@Bean(OrganClientZedu.class)
|
|
@Bean(OrganClientZedu.class)
|
|
OrganClient mOrganClient;
|
|
OrganClient mOrganClient;
|
|
public static String deviceId;
|
|
public static String deviceId;
|
|
- private boolean nextStartExit = false;
|
|
|
|
|
|
+ public static boolean nextStartExit = true;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
@@ -130,9 +130,6 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
protected void onStart() {
|
|
protected void onStart() {
|
|
super.onStart();
|
|
super.onStart();
|
|
initPermission();
|
|
initPermission();
|
|
- if(nextStartExit) {
|
|
|
|
- finish();
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public void gotoMain() {
|
|
public void gotoMain() {
|
|
@@ -218,31 +215,6 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- @Subscribe(threadMode = ThreadMode.MAIN)
|
|
|
|
- public void initEvent(Object object) {
|
|
|
|
- super.initEvent(object);
|
|
|
|
- //此处验证设备是否被禁用
|
|
|
|
- if (object instanceof DeviceEvent) {
|
|
|
|
- DeviceEntity.DeviceRegisterEntity entity = ((DeviceEvent) object).device;
|
|
|
|
- mDevicePrefs.status().put(entity.status);
|
|
|
|
- if(entity.status == 1){
|
|
|
|
- ActivateActivity_.intent(this).packageName(APP_COCOS_CMB_ID).start();
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //此处验证机构是否欠费
|
|
|
|
- if (object instanceof ArrearsEvent) {
|
|
|
|
- OrganEntity entity = ((ArrearsEvent) object).organ;
|
|
|
|
- if (entity == null || entity.isArrears.equals(1)) {
|
|
|
|
- arrears(((ArrearsEvent) object).message);
|
|
|
|
- } else {
|
|
|
|
- gotoMain();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
Dialog dialog;
|
|
Dialog dialog;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -267,7 +239,7 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
public void startAppActivity() {
|
|
public void startAppActivity() {
|
|
Intent intent = new Intent(this, AppActivity.class);
|
|
Intent intent = new Intent(this, AppActivity.class);
|
|
this.startActivity(intent);
|
|
this.startActivity(intent);
|
|
- nextStartExit = true;
|
|
|
|
|
|
+ finish();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|