@@ -43,18 +43,18 @@ Gradle, add:
4343
4444``` groovy
4545dependencies {
46- // ...
47- compile 'com.firebaseui:firebase-ui-auth:0.6.0'
46+ // ...
47+ compile 'com.firebaseui:firebase-ui-auth:0.6.0'
4848}
4949```
5050
5151If instead your project uses Maven, add:
5252
5353``` xml
5454<dependency >
55- <groupId >com.firebaseui</groupId >
56- <artifactId >firebase-ui-auth</artifactId >
57- <version >0.6.0</version >
55+ <groupId >com.firebaseui</groupId >
56+ <artifactId >firebase-ui-auth</artifactId >
57+ <version >0.6.0</version >
5858</dependency >
5959```
6060
@@ -72,8 +72,8 @@ the [Facebook developer dashboard](https://developers.facebook.com):
7272
7373``` xml
7474<resources >
75- <!-- ... -->
76- <string name =" facebook_application_id" translatable =" false" >APPID</string >
75+ <!-- ... -->
76+ <string name =" facebook_application_id" translatable =" false" >APPID</string >
7777</resources >
7878```
7979
@@ -86,9 +86,9 @@ whether a
8686``` java
8787FirebaseAuth auth = FirebaseAuth . getInstance();
8888if (auth. getCurrentUser() != null ) {
89- // already signed in
89+ // already signed in
9090} else {
91- // not signed in
91+ // not signed in
9292}
9393```
9494
@@ -196,18 +196,18 @@ supported.
196196
197197``` java
198198protected void onActivityResult(int requestCode, int resultCode, Intent data) {
199- super . onActivityResult(requestCode, resultCode, data);
200- if (requestCode == RC_SIGN_IN ) {
201- if (resultCode == RESULT_OK ) {
202- // user is signed in!
203- startActivity(new Intent (this , WelcomeBackActivity . class));
204- finish();
205- } else {
206- // user is not signed in. Maybe just wait for the user to press
207- // "sign in" again, or show a message
208- }
209- }
210- }
199+ super . onActivityResult(requestCode, resultCode, data);
200+ if (requestCode == RC_SIGN_IN ) {
201+ if (resultCode == RESULT_OK ) {
202+ // user is signed in!
203+ startActivity(new Intent (this , WelcomeBackActivity . class));
204+ finish();
205+ } else {
206+ // user is not signed in. Maybe just wait for the user to press
207+ // "sign in" again, or show a message
208+ }
209+ }
210+ }
211211```
212212
213213Alternatively, you can register a listener for authentication state changes;
@@ -236,17 +236,17 @@ completed once all necessary sign-out operations are completed:
236236
237237``` java
238238public void onClick(View v) {
239- if (v. getId() == R . id. sign_out) {
240- AuthUI . getInstance()
241- .signOut(this )
242- .addOnCompleteListener(new OnCompleteListener<Void > () {
239+ if (v. getId() == R . id. sign_out) {
240+ AuthUI . getInstance()
241+ .signOut(this )
242+ .addOnCompleteListener(new OnCompleteListener<Void > () {
243243 public void onComplete (@NonNull Task<Void > task ) {
244- // user is now signed out
245- startActivity(new Intent (MyActivity . this , SignInActivity . class));
246- finish();
244+ // user is now signed out
245+ startActivity(new Intent (MyActivity . this , SignInActivity . class));
246+ finish();
247247 }
248- });
249- }
248+ });
249+ }
250250}
251251```
252252
@@ -308,8 +308,8 @@ redefine a string to change it, for example:
308308
309309``` java
310310< resources>
311- < ! -- was " Signing up..." -- >
312- < string name= " progress_dialog_signing_up" > Creating your shiny new account...</string>
311+ < ! -- was " Signing up..." -- >
312+ < string name= " progress_dialog_signing_up" > Creating your shiny new account...</string>
313313</resources>
314314```
315315
0 commit comments