Commit 9cf314c6 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

add listener to click button

parent b29b4a20
......@@ -2,11 +2,13 @@ package com.biganto.visual.roompark.presentation.screen.auth
import android.view.View
import butterknife.BindView
import butterknife.OnClick
import com.biganto.visual.roompark.R
import com.biganto.visual.roompark.base.RoomParkApplication
import com.biganto.visual.roompark.base.RoomParkMainActivity
import com.biganto.visual.roompark.conductor.BigantoBaseController
import com.biganto.visual.roompark.presentation.screen.home.home_routing.HomeBottomNavigationController
import com.biganto.visual.roompark.util.extensions.startUrl
import com.bluelinelabs.conductor.RouterTransaction
import com.google.android.material.button.MaterialButton
import com.google.android.material.textfield.TextInputLayout
......@@ -22,6 +24,8 @@ import javax.inject.Inject
* Created by Vladislav Bogdashkin on 30.09.2019.
*/
private const val RESTORE_PASS_URL = "https://room-park.ru/users/remind/"
class AuthScreenController :
BigantoBaseController<AuthScreenViewState
, AuthScreen
......@@ -37,6 +41,12 @@ class AuthScreenController :
@BindView(R.id.login_text_input) lateinit var loginInput:TextInputLayout
@BindView(R.id.password_text_input) lateinit var pwdInput:TextInputLayout
@BindView(R.id.sign_in_button) lateinit var signInButton:MaterialButton
@BindView(R.id.restore_pass_button) lateinit var restoreButton:MaterialButton
@OnClick(R.id.restore_pass_button)
fun onRestorePass(){
activity?.startUrl(RESTORE_PASS_URL)
}
override fun tryAuth(): Observable<AuthInputModel> =
signInButton.clicks()
......
......@@ -99,6 +99,7 @@
<com.google.android.material.button.MaterialButton
android:id="@+id/restore_pass_button"
style="@style/AuthButton.Restore"
android:layout_width="wrap_content"
android:layout_height="40dp"
......
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