fix: only redirect user to login form if legacy QR code is contains no token

This commit is contained in:
Robert Benedikt committed 2020-12-19 11:24:04 +01:00
1 parent 7176a444af
commit 6a4d868777
1 file changed
+6 -6
@@ -481,12 +481,12 @@ public class LoginActivity extends BaseActivity implements EventSelectedListener
}
builder.setPositiveButton(android.R.string.ok, null);
builder.show();
}
final String accessToken = AppPreferences.on(this).getAccessToken();
if (TextUtils.isEmpty(accessToken)) {
LocalBroadcastManager.getInstance(LoginActivity.this)
.sendBroadcast(new Intent(AppConstants.ACTION_SHOW_LOGIN));
return;
final String accessToken = AppPreferences.on(this).getAccessToken();
if (TextUtils.isEmpty(accessToken)) {
LocalBroadcastManager.getInstance(LoginActivity.this)
.sendBroadcast(new Intent(AppConstants.ACTION_SHOW_LOGIN));
return;
}
}
}
checkLogin();