Skip to content

Commit 1caf256

Browse files
committed
Revise README.md and change indent
1 parent a6d1473 commit 1caf256

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

ParseLoginUI/src/com/parse/ui/ParseLoginFragment.java

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -255,33 +255,33 @@ public void done(ParseUser user, ParseException e) {
255255
}
256256
} else if (user.isNew()) {
257257
GraphRequest.newMeRequest(AccessToken.getCurrentAccessToken(),
258-
new GraphRequest.GraphJSONObjectCallback() {
259-
@Override
260-
public void onCompleted(JSONObject fbUser,
261-
GraphResponse response) {
262-
/*
263-
If we were able to successfully retrieve the Facebook
264-
user's name, let's set it on the fullName field.
265-
*/
266-
ParseUser parseUser = ParseUser.getCurrentUser();
267-
if (fbUser != null && parseUser != null
268-
&& fbUser.optString("name").length() > 0) {
269-
parseUser.put(USER_OBJECT_NAME_FIELD, fbUser.optString("name"));
270-
parseUser.saveInBackground(new SaveCallback() {
271-
@Override
272-
public void done(ParseException e) {
273-
if (e != null) {
274-
debugLog(getString(
275-
R.string.com_parse_ui_login_warning_facebook_login_user_update_failed) +
276-
e.toString());
277-
}
278-
loginSuccess();
279-
}
280-
});
258+
new GraphRequest.GraphJSONObjectCallback() {
259+
@Override
260+
public void onCompleted(JSONObject fbUser,
261+
GraphResponse response) {
262+
/*
263+
If we were able to successfully retrieve the Facebook
264+
user's name, let's set it on the fullName field.
265+
*/
266+
ParseUser parseUser = ParseUser.getCurrentUser();
267+
if (fbUser != null && parseUser != null
268+
&& fbUser.optString("name").length() > 0) {
269+
parseUser.put(USER_OBJECT_NAME_FIELD, fbUser.optString("name"));
270+
parseUser.saveInBackground(new SaveCallback() {
271+
@Override
272+
public void done(ParseException e) {
273+
if (e != null) {
274+
debugLog(getString(
275+
R.string.com_parse_ui_login_warning_facebook_login_user_update_failed) +
276+
e.toString());
277+
}
278+
loginSuccess();
281279
}
282-
loginSuccess();
283-
}
280+
});
284281
}
282+
loginSuccess();
283+
}
284+
}
285285
).executeAsync();
286286
} else {
287287
loginSuccess();

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To run our sample apps, you need to import this repo as a standalone Gradle proj
2626

2727
#### Importing into Your App
2828
1. Clone this repository onto your machine.
29-
2. Configure Parse SDK by follwoing this tutorial. (https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/existing)
29+
2. Configure Parse SDK by following this tutorial. (https://www.parse.com/apps/quickstart#parse_data/mobile/android/native/existing)
3030
3. Import `ParseLoginUI` as a module into your app's Android Studio Project
3131
* File > Import Module in Android Studio
3232
* In the New Module pop-up, set the source directory to the `ParseUI-Android/ParseLoginUI` folder within the cloned repo.

0 commit comments

Comments
 (0)