mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 12:38:21 +01:00
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) {
|
with(binding.loginViewpager) {
|
||||||
adapter = pagerAdapter
|
adapter = pagerAdapter
|
||||||
isUserInputEnabled = false
|
isUserInputEnabled = false
|
||||||
|
offscreenPageLimit = 2
|
||||||
setOnSelectPageListener(presenter::onViewSelected)
|
setOnSelectPageListener(presenter::onViewSelected)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,10 @@ class LoginSymbolPresenter @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun attemptLogin(symbol: String) {
|
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()) {
|
if (symbol.isBlank()) {
|
||||||
view?.setErrorSymbolRequire()
|
view?.setErrorSymbolRequire()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user