GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Code inspect cleanup by SUPERCILEX · Pull Request #785 · firebase/FirebaseUI-Android

Conversation

@SUPERCILEX

@SUPERCILEX SUPERCILEX commented Jul 2, 2017

Copy link
Copy Markdown
Contributor

This PR does an Intellij code inspect and changes some semantics which is why I separated it from the style refactor PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
SUPERCILEX added 2 commits July 2, 2017 15:54
@SUPERCILEX
Style refactor
7cec918
@SUPERCILEX
Minor fixups
95080af
@SUPERCILEX

SUPERCILEX commented Jul 2, 2017

Copy link
Copy Markdown
Contributor Author

Oh, and I forgot to mention that it's built on top of #784.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SUPERCILEX SUPERCILEX mentioned this pull request Jul 2, 2017
Auth instances cleanup #786
Merged
SUPERCILEX added 9 commits July 2, 2017 17:52
@SUPERCILEX
Minor cleanup
a2a2ff5
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Fix weird indentation
adb2a0e
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Don't align method call params
08e771c
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Intellij code inspection
35a2d70
@SUPERCILEX
Minor style fixups
32d836a
@SUPERCILEX
More cleanup
2d20265
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Remove Provider#getProviderId() method since we don't use it anywhere
4c1e39e
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Fix weird lint issue
a3e0d2e
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Merge remote-tracking branch 'upstream/version-2.1.0-dev' into code-i…
480bd12
…nspect-cleanup

# Conflicts:
#	auth/src/main/java/com/firebase/ui/auth/provider/FacebookProvider.java
#	auth/src/main/java/com/firebase/ui/auth/provider/TwitterProvider.java
#	auth/src/main/java/com/firebase/ui/auth/ui/phone/CountryListSpinner.java
#	auth/src/main/java/com/firebase/ui/auth/ui/phone/PhoneVerificationActivity.java
SUPERCILEX
SUPERCILEX commented Jul 5, 2017
View reviewed changes

@SUPERCILEX SUPERCILEX left a comment

Copy link
Copy Markdown
Contributor Author

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.

@samtstern Merged! This diff is way smaller. 😄

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread app/src/main/java/com/firebase/uidemo/auth/AuthUiActivity.java
}

if (!isGoogleConfigured()) {
if (isGoogleMisconfigured()) {

@SUPERCILEX SUPERCILEX Jul 5, 2017

Copy link
Copy Markdown
Contributor Author

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.

Intellij said we were always inverting these.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread auth/src/main/java/com/firebase/ui/auth/provider/IdpProvider.java
void onSuccess(IdpResponse idpResponse);

void onFailure(Bundle extra);
void onFailure();

@SUPERCILEX SUPERCILEX Jul 5, 2017

Copy link
Copy Markdown
Contributor Author

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.

We never use this bundle anywhere.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread auth/src/main/java/com/firebase/ui/auth/provider/Provider.java
String getName(Context context);

/** Retrieves the id of the IDP, e.g. {@link GoogleAuthProvider#PROVIDER_ID}. */
String getProviderId();

@SUPERCILEX SUPERCILEX Jul 5, 2017

Copy link
Copy Markdown
Contributor Author

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.

We never use this anywhere which makes sense since most of the time we need the provider id to figure out which class to instantiate. Thus, we would already have the provider id by the time we get an instance of a Provider.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread auth/src/main/java/com/firebase/ui/auth/ui/phone/SubmitConfirmationCodeFragment.java
if (t != null) {
mCountdownTimer.update(t);
}
mCountdownTimer.update(savedInstanceState.getLong(EXTRA_MILLIS_UNTIL_FINISHED));

@SUPERCILEX SUPERCILEX Jul 5, 2017

Copy link
Copy Markdown
Contributor Author

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.

getLong returns a long, not a Long so it's always going to be non-null.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@samtstern

samtstern commented Jul 5, 2017

Copy link
Copy Markdown
Contributor

LGTM!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@samtstern
samtstern merged commit 6aeafd4 into firebase:version-2.1.0-dev Jul 5, 2017
@SUPERCILEX
SUPERCILEX deleted the code-inspect-cleanup branch July 5, 2017 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@SUPERCILEX @samtstern
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.