forked from photo/mobile-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue photo#459 (Card 7) (Multi-site login)
app: - AccountLogin.LogInFragment, AccountSignup.NewUserFragment: now it implements LoginActionHandler - AccountLogin.LogInFragment, AccountSignup.NewUserFragment: added static fields sCurrentInstance and sCurrentInstanceAccessor - AccountLogin.LogInFragment, AccountSignup.NewUserFragment: added new fields mDelayedLoginProcess, mLastResponse - AccountLogin.LogInFragment, AccountSignup.NewUserFragment: added implementation of onCreate and onDestroy to init sCurrentInstance static field - AccountLogin.LogInFragment, AccountSignup.NewUserFragment, GoogleLoginFragment: added new methods processLoginCredentials, processLoginResponse, onViewCreated - AccountLogin.LogInFragment.LogInUserTask, AccountSignup.NewUserFragment.NewUserTask, GoogleLoginFragment.LogInUserTask: reworked onSuccessPostExecuteAdditional method to call processLoginResonse or schedule delayed login processing depend on fragment-activity attached state - GoogleLoginFragment: renamed currentInstance field to sCurrentInstance, requestCode to mRequestCode, delayedLoggedIn to mDelayedLoginProcessing - GoogleLoginFragment: added new static field sCurrentInstanceAccessor - GoogleLoginFragment: added new field mLastResponse - GoogleLoginFragment: removed method onLoggedIn and reworked onViewCreated to call processLoginResonse - SetupActivity: replaced getActivity with getSupportActivity call for OAuthUtils.askOAuth call - Credentials: added - AccountTroveboxResponse: removed different credentials field and added mCredentials field - AccountTroveboxResponse: reworked constructor to support array of credentials in the json result - OAuthUtils: replaced Activity reference in import with HE one - LoginUtils: added new methods: onLoggedIn, processSuccessfulLoginResult, performLogin - LoginUtils.SelectAccountSelectedActionHandler: added - LoginUtils.LoginActionHandler: added - LoginUtils.SelectAccountDialogFragment: added - res/values/strings.xml, res/values-ru/strings.xml: added select_trovebox_account constant test: - CredentialsTest: added - AccountTroveboxApiTest: modified to use credentials reference from the modified AccountTroveboxResponse - AccountTroveboxResponseTest: added - res/raw/json_credentials.txt: added - res/raw/json_login_multiple.txt: added - res/raw/json_login_simple.txt: added
- Loading branch information
1 parent
390a434
commit 11447ec
Showing
16 changed files
with
680 additions
and
167 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
Oops, something went wrong.