-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Refactor chooseAccountActivity #357
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
samtstern
merged 114 commits into
firebase:master
from
SUPERCILEX:refactor-ChooseAccountActivity
Nov 23, 2016
Merged
Changes from 103 commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
05ce3b5
temporary: saving to work on another computer
SUPERCILEX 2391efb
Merge remote-tracking branch 'firebase/master' into refactor-zombie-a…
SUPERCILEX 05a476a
Merge remote-tracking branch 'firebase/master' into refactor-zombie-a…
SUPERCILEX 2c0eaf5
Code compiles
SUPERCILEX 8adeee1
Cleanup
SUPERCILEX 11f3c2b
Cleanup
SUPERCILEX cb826f4
Cleanup
SUPERCILEX 3b788f5
Update SmartLock.java with new fragment logic
SUPERCILEX 9eaa4cd
Fix bug in SmartLock.java
SUPERCILEX 3b76ac6
Cleanup
SUPERCILEX 86d58a9
Cleanup
SUPERCILEX 6ad0021
Fix broken tests
SUPERCILEX 550acc9
Cleanup
SUPERCILEX b9d3ca5
Cleanup
SUPERCILEX a8b5cf5
Cleanup
SUPERCILEX 83e13d8
Refactor SaveSmartLock.java
SUPERCILEX c529171
Initial refactor
SUPERCILEX 5142dec
Cleanup
SUPERCILEX 361d308
Cleanup
SUPERCILEX 9a4921e
Bug fix
SUPERCILEX 6af7674
Cleanup
SUPERCILEX 35d94bb
Cleanup
SUPERCILEX 64728b2
Cleanup and bug fixes
SUPERCILEX dde4160
Cleanup
SUPERCILEX 2d5dfdc
Cleanup
SUPERCILEX f3bd0f1
Fix intellij messing up documentation.
SUPERCILEX f06845b
Cleanup
SUPERCILEX 9782793
Cleanup
SUPERCILEX 7d1d1c6
Remove unused strings
SUPERCILEX 20413ee
Cleanup
SUPERCILEX 7842c48
Refactor progress hiding and delegateSignIn()
SUPERCILEX 135d2c5
Cleanup sample
SUPERCILEX 23ae513
Fix null pointer for low memory devices
SUPERCILEX 25eb137
Fix for #171
SUPERCILEX be7e0c3
Fix for #152
SUPERCILEX 07beeb3
Force activity to implement onResult
SUPERCILEX 13122c3
Fix smart lock failed flow
SUPERCILEX 862b884
make it compile
SUPERCILEX a7b3336
Relaxed activity requirements to FragmentActivity
SUPERCILEX db96c91
Cleanup
SUPERCILEX 19bde41
Add interface to SmartLock
SUPERCILEX 96027d0
Merge remote-tracking branch 'firebase/version-1.0.0-dev' into refact…
SUPERCILEX 9511a6d
Merge dev
SUPERCILEX cbe0cfb
working on tests
SUPERCILEX a81bf5a
working on tests
SUPERCILEX db05831
Revert interface, working on fixing tests
SUPERCILEX 8c96216
Fix tests
SUPERCILEX d333302
Merge remote-tracking branch 'firebase/version-1.0.0-dev' into refact…
SUPERCILEX cb6efad
Merge dev
SUPERCILEX af644be
Fix merge mistakes
SUPERCILEX 4152c23
Cleanup
SUPERCILEX 2cc8adf
Final cleanup and fix tests
SUPERCILEX c138a51
Fix test
SUPERCILEX f88aab3
Fix test
SUPERCILEX ad115f0
Merge remote-tracking branch 'firebase/version-1.0.0-dev' into refact…
SUPERCILEX 0a161d7
Merge remote-tracking branch 'origin/refactor-zombie-activities' into…
SUPERCILEX 8813c8c
Fix merge mistakes
SUPERCILEX 6f0f4da
Make git show ChooseAccountActivity renamed to SignInDelegate.java
SUPERCILEX 099ef6d
Now shows rename
SUPERCILEX 517f4ce
Working on fixing merge mistakes and preventing regressions
SUPERCILEX 24ef137
Merge stuff from ChooseAccountActivity into SignInDelegate.java
SUPERCILEX 9b568ec
Merge remote-tracking branch 'firebase/version-1.0.0-dev' into refact…
SUPERCILEX 4a449d5
test
SUPERCILEX a6553d5
Remove references to enableAutoManage
SUPERCILEX 00126d1
It compiles!
SUPERCILEX a9c895e
Rename public API to AuthUISignInResult and onSignInResult
SUPERCILEX 8566118
Update public api
SUPERCILEX f5738b1
Cleanup
SUPERCILEX 1fb5c08
Working on tests
SUPERCILEX 1793dbd
working on tests
SUPERCILEX ca10f6c
Removed unnecessary tests
SUPERCILEX a0355b5
Fix bug in SaveSmartLock.java not connecting
SUPERCILEX e60bb5e
More refactoring!
SUPERCILEX 7fcf057
It compiles!
SUPERCILEX 121919a
Fix tests
SUPERCILEX a78480e
Fix nullPointerException
SUPERCILEX a94aedc
Simplify public api
SUPERCILEX cda7bfd
Bug fixes and prettification
SUPERCILEX 83a0551
Fix null pointer
SUPERCILEX 4613154
Really fix null pointer
SUPERCILEX 058d4fe
Remove unnecessary dismiss dialog
SUPERCILEX c1418ef
Fix null pointer
SUPERCILEX 6d0bf2f
Cleanup
SUPERCILEX 4998691
Cleanup
SUPERCILEX e7627fa
Change public api
SUPERCILEX ee5810a
Merge remote-tracking branch 'firebase/master' into refactor-ChooseAc…
SUPERCILEX 9bb8353
Cleanup
SUPERCILEX aff9984
Cleanup
SUPERCILEX a39eb0f
Add @LayoutRes
SUPERCILEX c5878d2
wrong branch
SUPERCILEX be88ece
Merge remote-tracking branch 'firebase/master' into refactor-ChooseAc…
SUPERCILEX 8866f60
Fix merge mistakes
SUPERCILEX cc22d28
Address review comments
SUPERCILEX d0ef556
Initial cleanup
SUPERCILEX ea2434d
Fix accidental regressions from ChooseAccountActivity
SUPERCILEX c77ea5b
Another depressingly large refactor
SUPERCILEX d4278e7
Fix broken tests
SUPERCILEX e6ff3ef
Cleanup
SUPERCILEX 3cbfed5
Fix crashes and bugs on low memory devices
SUPERCILEX 3210e7e
Fix bug where google account sign in would be shown even if only emai…
SUPERCILEX eed92af
More massive reactors: using a gateway activity to not break public a…
SUPERCILEX 80a4cb0
Fix bugs on low memory devices
SUPERCILEX e25e64e
Fix broken tests
SUPERCILEX 42d695c
Final (I hope) cleanup
SUPERCILEX e8d5bbe
Nope, package cleanup
SUPERCILEX be698da
Add leakcanary and update dependencies
SUPERCILEX ac0a78e
Fix recovery dialog being dismissed on screen rotation
SUPERCILEX 6cce271
Rename SmartLock to SmartLockBase.java
SUPERCILEX 6870518
Fix typo
SUPERCILEX bb09653
Enable auto manage to help prevent memory leaks
SUPERCILEX 151b8d3
Fix #348 and IllegalStateException in SaveSmartLock because of automa…
SUPERCILEX 707f51a
Refactor GoogleApiClient auto manage constants
SUPERCILEX 6b678e4
Remove unnecessary sign in options.
SUPERCILEX 52d27a3
Fix possible null pointer
SUPERCILEX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
auth/src/main/java/com/firebase/ui/auth/FragmentHelper.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.firebase.ui.auth; | ||
|
||
import android.content.Intent; | ||
import android.content.IntentSender; | ||
import android.os.Bundle; | ||
import android.support.v4.app.Fragment; | ||
|
||
import com.firebase.ui.auth.ui.ExtraConstants; | ||
import com.firebase.ui.auth.ui.FlowParameters; | ||
import com.firebase.ui.auth.util.BaseHelper; | ||
|
||
public class FragmentHelper extends BaseHelper { | ||
private Fragment mFragment; | ||
|
||
public FragmentHelper(Fragment fragment) { | ||
super(fragment.getContext(), (FlowParameters) fragment.getArguments() | ||
.getParcelable(ExtraConstants.EXTRA_FLOW_PARAMS)); | ||
mFragment = fragment; | ||
} | ||
|
||
public void finish(int resultCode, Intent intent) { | ||
finishActivity(mFragment.getActivity(), resultCode, intent); | ||
} | ||
|
||
public static Bundle getFlowParamsBundle(FlowParameters params) { | ||
Bundle bundle = new Bundle(); | ||
bundle.putParcelable(ExtraConstants.EXTRA_FLOW_PARAMS, params); | ||
return bundle; | ||
} | ||
|
||
public void startIntentSenderForResult(IntentSender sender, int requestCode) | ||
throws IntentSender.SendIntentException { | ||
mFragment.startIntentSenderForResult(sender, requestCode, null, 0, 0, 0, null); | ||
} | ||
} |
34 changes: 0 additions & 34 deletions
34
auth/src/main/java/com/firebase/ui/auth/ui/ActivityBase.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
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.
See below, this was useless. (You guys were a bit too heavy on activities while writing this library! 😄)