-
Notifications
You must be signed in to change notification settings - Fork 7.4k
refactor(auth): remove RelativeLayout usage #1237
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
Changes from all commits
6ac5969
6b6d9d6
d19cf38
d5d21cb
8947fdb
fc1697f
98d3276
72feccc
da7f15f
249eca2
f2120dd
6787549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -287,13 +287,13 @@ class PhoneAuthActivity : AppCompatActivity(), View.OnClickListener { | |||||||||||||||||||||||||||||||||||||||||
if (user == null) { | ||||||||||||||||||||||||||||||||||||||||||
// Signed out | ||||||||||||||||||||||||||||||||||||||||||
binding.phoneAuthFields.visibility = View.VISIBLE | ||||||||||||||||||||||||||||||||||||||||||
binding.signedInButtons.visibility = View.GONE | ||||||||||||||||||||||||||||||||||||||||||
binding.signOutButton.visibility = View.GONE | ||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed above, but I double checked: quickstart-android/auth/app/src/main/res/layout/activity_phone_auth.xml Lines 121 to 140 in 368ff73
|
||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
binding.status.setText(R.string.signed_out) | ||||||||||||||||||||||||||||||||||||||||||
} else { | ||||||||||||||||||||||||||||||||||||||||||
// Signed in | ||||||||||||||||||||||||||||||||||||||||||
binding.phoneAuthFields.visibility = View.GONE | ||||||||||||||||||||||||||||||||||||||||||
binding.signedInButtons.visibility = View.VISIBLE | ||||||||||||||||||||||||||||||||||||||||||
binding.signOutButton.visibility = View.VISIBLE | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
enableViews(binding.fieldPhoneNumber, binding.fieldVerificationCode) | ||||||||||||||||||||||||||||||||||||||||||
binding.fieldPhoneNumber.text = null | ||||||||||||||||||||||||||||||||||||||||||
|
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.
Is this the right change? We used to hide a group of buttons now you're just hiding one.
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.
Yes, the change is correct. That group was a LinearLayout containing only a single button, so I removed it and kept the button only.
quickstart-android/auth/app/src/main/res/layout/activity_passwordless.xml
Lines 110 to 130 in 368ff73