|
@@ -81,7 +81,7 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
|
@Bean(OrganClientZedu.class)
|
|
|
OrganClient mOrganClient;
|
|
|
public static String deviceId;
|
|
|
- private boolean nextStartExit = false;
|
|
|
+ public static boolean nextStartExit = true;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
@@ -130,9 +130,6 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
|
protected void onStart() {
|
|
|
super.onStart();
|
|
|
initPermission();
|
|
|
- if(nextStartExit) {
|
|
|
- finish();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
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;
|
|
|
|
|
|
/**
|
|
@@ -267,7 +239,7 @@ public class LauncherActivity extends BaseFragmentActivity {
|
|
|
public void startAppActivity() {
|
|
|
Intent intent = new Intent(this, AppActivity.class);
|
|
|
this.startActivity(intent);
|
|
|
- nextStartExit = true;
|
|
|
+ finish();
|
|
|
}
|
|
|
|
|
|
}
|