Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
9cf314c6
Commit
9cf314c6
authored
May 15, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add listener to click button
parent
b29b4a20
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
ScreenController.kt
...ual/roompark/presentation/screen/auth/ScreenController.kt
+10
-0
authentication_screen.xml
app/src/main/res/layout/authentication_screen.xml
+1
-0
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/auth/ScreenController.kt
View file @
9cf314c6
...
...
@@ -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
()
...
...
app/src/main/res/layout/authentication_screen.xml
View file @
9cf314c6
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment