Skip to content
Snippets Groups Projects
Commit bd6bb46a authored by Taras's avatar Taras
Browse files

Setup listener

parent 2c2d91e5
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import androidx.navigation.fragment.findNavController
import dagger.hilt.android.AndroidEntryPoint
import org.futo.circles.auth.R
import org.futo.circles.auth.databinding.FragmentLogInBinding
import org.futo.circles.auth.feature.log_in.suggestion.LoginSuggestionListener
import org.futo.circles.auth.feature.log_in.switch_user.list.SwitchUsersAdapter
import org.futo.circles.auth.feature.log_in.switch_user.list.SwitchUsersViewHolder
import org.futo.circles.auth.model.ForgotPassword
......@@ -29,7 +30,7 @@ import org.futo.circles.core.extensions.withConfirmation
@AndroidEntryPoint
class LogInFragment : BaseBindingFragment<FragmentLogInBinding>(FragmentLogInBinding::inflate),
HasLoadingState {
HasLoadingState, LoginSuggestionListener {
override val fragment: Fragment = this
private val viewModel by viewModels<LogInViewModel>()
......@@ -104,6 +105,10 @@ class LogInFragment : BaseBindingFragment<FragmentLogInBinding>(FragmentLogInBin
}
}
override fun onLoginSuggestionApplied(userId: String) {
TODO("Not yet implemented")
}
private fun startLogin(isForgotPassword: Boolean) {
val userName = binding.tilUserName.getText()
if (userName.isEmpty()) {
......
package org.futo.circles.auth.feature.log_in.suggestion
interface LoginSuggestionListener {
fun onLoginSuggestionApplied(userId: String)
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment