Stoppato servizio di check dello stato del server quando si fa il logout e avviato al login.
This commit is contained in:
parent
6bbcc1ce5b
commit
145f9459f9
@ -153,6 +153,8 @@ public class MainActivity extends AppCompatActivity
|
||||
|
||||
else if(id == R.id.nav_logout){
|
||||
UtilitySettings.logout();
|
||||
ServerStatusChecker.dispose();
|
||||
|
||||
startLoginActivity();
|
||||
}
|
||||
|
||||
|
||||
@ -35,8 +35,6 @@ public class AppContext {
|
||||
|
||||
this.initCrashlytics();
|
||||
|
||||
this.initServerStatusChecker();
|
||||
|
||||
this.initBarcode();
|
||||
|
||||
this.initUtilities();
|
||||
@ -67,10 +65,6 @@ public class AppContext {
|
||||
}
|
||||
}
|
||||
|
||||
private void initServerStatusChecker() {
|
||||
ServerStatusChecker.init();
|
||||
}
|
||||
|
||||
private void initBarcode() {
|
||||
BarcodeManager.init(mContext);
|
||||
}
|
||||
|
||||
@ -6,6 +6,7 @@ import android.text.SpannableString;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import it.integry.integrywmsnative.core.REST.watcher.ServerStatusChecker;
|
||||
import it.integry.integrywmsnative.core.class_router.ClassRouter;
|
||||
import it.integry.integrywmsnative.core.settings.SettingsManager;
|
||||
import it.integry.integrywmsnative.core.utility.UtilityExceptions;
|
||||
@ -26,9 +27,15 @@ public class MainContext {
|
||||
});
|
||||
|
||||
this.initReflections();
|
||||
|
||||
this.initServerStatusChecker();
|
||||
}
|
||||
|
||||
|
||||
private void initServerStatusChecker() {
|
||||
ServerStatusChecker.init();
|
||||
}
|
||||
|
||||
private void initDBData(Runnable onComplete) {
|
||||
SettingsManager.loadDBVariables(onComplete, ex -> {
|
||||
DialogSimpleMessageHelper.makeErrorDialog(mContext,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user