diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/login/LoginActivity.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/login/LoginActivity.kt index 0605fa2d8..e607cef15 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/login/LoginActivity.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/login/LoginActivity.kt @@ -74,6 +74,7 @@ class LoginActivity : BaseActivity(), Logi with(binding.loginViewpager) { adapter = pagerAdapter isUserInputEnabled = false + offscreenPageLimit = 2 setOnSelectPageListener(presenter::onViewSelected) } diff --git a/app/src/main/java/io/github/wulkanowy/ui/modules/login/symbol/LoginSymbolPresenter.kt b/app/src/main/java/io/github/wulkanowy/ui/modules/login/symbol/LoginSymbolPresenter.kt index 7c84e1ec1..1ba7e5b32 100644 --- a/app/src/main/java/io/github/wulkanowy/ui/modules/login/symbol/LoginSymbolPresenter.kt +++ b/app/src/main/java/io/github/wulkanowy/ui/modules/login/symbol/LoginSymbolPresenter.kt @@ -50,7 +50,10 @@ class LoginSymbolPresenter @Inject constructor( } fun attemptLogin(symbol: String) { - if (loginData == null) throw IllegalArgumentException("Login data is null") + if (loginData == null) { + Timber.w("LoginSymbolPresenter - Login data is null") + return + } if (symbol.isBlank()) { view?.setErrorSymbolRequire()