Unverified Commit f066382a authored by Filipe de Lima Brito's avatar Filipe de Lima Brito Committed by GitHub

Merge pull request #1079 from RocketChat/fix/more-login-options

[FIX] Fix more login options
parents d0e17275 b406d6d8
...@@ -14,6 +14,7 @@ import android.view.ViewGroup ...@@ -14,6 +14,7 @@ import android.view.ViewGroup
import android.view.ViewTreeObserver import android.view.ViewTreeObserver
import android.widget.ImageButton import android.widget.ImageButton
import android.widget.ScrollView import android.widget.ScrollView
import androidx.core.view.postDelayed
import chat.rocket.android.BuildConfig import chat.rocket.android.BuildConfig
import chat.rocket.android.R import chat.rocket.android.R
import chat.rocket.android.authentication.login.presentation.LoginPresenter import chat.rocket.android.authentication.login.presentation.LoginPresenter
...@@ -377,19 +378,23 @@ class LoginFragment : Fragment(), LoginView { ...@@ -377,19 +378,23 @@ class LoginFragment : Fragment(), LoginView {
} }
private fun showRemainingSocialAccountsView() { private fun showRemainingSocialAccountsView() {
social_accounts_container.postDelayed({ social_accounts_container.postDelayed(300) {
(0..social_accounts_container.childCount) ui {
.mapNotNull { social_accounts_container.getChildAt(it) as? ImageButton } (0..social_accounts_container.childCount)
.filter { it.isClickable } .mapNotNull { social_accounts_container.getChildAt(it) as? ImageButton }
.forEach { ui { it.setVisible(true) }} .filter { it.isClickable }
}, 1000) .forEach { it.setVisible(true) }
}
}
} }
// Scrolling to the bottom of the screen. // Scrolling to the bottom of the screen.
private fun scrollToBottom() { private fun scrollToBottom() {
scroll_view.postDelayed({ scroll_view.postDelayed(1250) {
ui { scroll_view.fullScroll(ScrollView.FOCUS_DOWN) } ui {
}, 1250) scroll_view.fullScroll(ScrollView.FOCUS_DOWN)
}
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment