-
Notifications
You must be signed in to change notification settings - Fork 555
chore: Toast notification text for successful login #703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Changed Toast notification text to " welcome back ! " From " success ".
simarsingh24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Store it in strings file and reference it here
|
|
||
| loginActivityViewModel.loggedIn.observe(this, Observer { | ||
| Toast.makeText(context, "Welcome back!", Toast.LENGTH_LONG).show() | ||
| val loggedIn: String = getString(R.string.logged_in) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to create temp var
app/src/main/res/values/strings.xml
Outdated
| <string name="confirm_password">Confirm Password</string> | ||
| <string name="first_name_optional">First Name (Optional)</string> | ||
| <string name="last_name_optional">Last Name (Optional)</string> | ||
| <string name="logged_in">Welcome back!</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can name it welcome or welcome_back to avoid confusion
iamareebjamal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the pull according to semantic standards
codepoet2017390
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your commits
Changed Toast notification text to " Welcome back ! " From " success ".
Fixes #697