Control on the password or on the salt and token

This commit is contained in:
CappielloAntonio 2022-02-05 23:28:24 +01:00
parent be9e74bdbe
commit db4bc39ea6

View file

@ -100,7 +100,7 @@ public class MainActivity extends BaseActivity {
initBottomSheet();
initNavigation();
if (PreferenceUtil.getInstance(this).getToken() != null && PreferenceUtil.getInstance(this).getSalt() != null) {
if (PreferenceUtil.getInstance(this).getPassword() != null || (PreferenceUtil.getInstance(this).getToken() != null && PreferenceUtil.getInstance(this).getSalt() != null)) {
goFromLogin();
} else {
goToLogin();