Skip to content

Style refactor #784

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

Merged
merged 5 commits into from
Jul 5, 2017
Merged

Style refactor #784

merged 5 commits into from
Jul 5, 2017

Conversation

SUPERCILEX
Copy link
Collaborator

@samtstern I started working on making my anonymous auth PR support phone auth, but I kept shuddering some really gross phone auth code so this PR fixes that messiness. 😄

The PR

  • Auto styles all documentation so it's nice and aligned and stuff
  • Restyles the manifests with the trailing space
  • Cleans up phone auth code
  • Deletes a whole bunch of zombie code we weren't using (Yay! 😄)

* The view helps display TOS linking to the provided custom URI.
* It handles the styling of the link and opens the uri in a CustomTabs on click.
*/
public class TermsTextView extends AppCompatTextView {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only non-style change, I got rid of the custom TextView.

This was referenced Jul 2, 2017
Signed-off-by: Alex Saveau <[email protected]>
Copy link
Contributor

@samtstern samtstern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall just two nits!

}, SHORT_DELAY_MILLIS);
}
}).addOnFailureListener(this, new OnFailureListener() {
}).addOnFailureListener(this, new OnFailureListener() {
@Override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this indentation is strange, the onFailure method is to the left of addOnFailureListener

@@ -134,7 +134,7 @@ public void onSaveInstanceState(Bundle outState) {

private void setTimer(long millisUntilFinished) {
mCountDownTextView.setText(String.format(getString(R.string.resend_code_in),
timeRoundedToSeconds(millisUntilFinished)));
timeRoundedToSeconds(millisUntilFinished)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this was auto-formatted, can we change the rules not to do these aligned hanging indents (here and everywhere)? They don't survive refactoring.

Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Copy link
Collaborator Author

@samtstern Done with a green build! 😄

@samtstern samtstern merged commit f34f5ab into firebase:version-2.1.0-dev Jul 5, 2017
@SUPERCILEX SUPERCILEX deleted the style-cleanup branch July 5, 2017 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants