forked from github/wulkanowy-mirror
Fix empty student list in LoginStudentSelect view (#1668)
This commit is contained in:
parent
fcc71c0d5f
commit
a6c0efcb81
@ -74,6 +74,7 @@ class LoginActivity : BaseActivity<LoginPresenter, ActivityLoginBinding>(), Logi
|
||||
with(binding.loginViewpager) {
|
||||
adapter = pagerAdapter
|
||||
isUserInputEnabled = false
|
||||
offscreenPageLimit = 2
|
||||
setOnSelectPageListener(presenter::onViewSelected)
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user