Untitled diff

Created Diff never expires
14 刪除
總計
刪除
單詞
總計
刪除
要繼續使用此功能,請升級到
Diffchecker logo
Diffchecker Pro
36
10 新增
總計
新增
單詞
總計
新增
要繼續使用此功能,請升級到
Diffchecker logo
Diffchecker Pro
34
private void handleSignInResult(GoogleSignInResult result) {
private void handleSignInResult(GoogleSignInResult result) {
Log.d(TAG, "handleSignInResult:" + result.isSuccess());
Log.d(TAG, "handleSignInResult:" + result.isSuccess());
if (result.isSuccess()) {
if (result.isSuccess()) {
// Signed in successfully, show authenticated UI.
// Signed in successfully, show authenticated UI.
GoogleSignInAccount acct = result.getSignInAccount();
GoogleSignInAccount acct = result.getSignInAccount();


Log.e(TAG, "display name: " + acct.getDisplayName());
Log.e(TAG, "display name: " + acct);


String personName = acct.getDisplayName();
personName = acct.getDisplayName();
String personPhotoUrl = null;
personPhotoUrl = String.valueOf(acct.getPhotoUrl());
try{
ggoleemail = acct.getEmail();
personPhotoUrl = acct.getPhotoUrl().toString();
googleid="G"+acct.getId();
String baday= String.valueOf(acct.getAccount());


}catch (Exception p){
}
String email = acct.getEmail();


Log.e(TAG, "Name: " + personName + ", email: " + email
Log.e(TAG, "Name: " + personName+googleid +baday+ ", email: " + ggoleemail
+ ", Image: " + personPhotoUrl);
+ ", Image: " + personPhotoUrl);


txtName.setText(personName);
txtName.setText(personName);
txtEmail.setText(email);
txtEmail.setText(email);
Glide.with(getApplicationContext()).load(personPhotoUrl)
Glide.with(getActivity()).load(personPhotoUrl)
.thumbnail(0.5f)
.thumbnail(0.5f)
.crossFade()
.crossFade()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(imgProfilePic);
.into(imgProfilePic);


googleslogins();

updateUI(true);
updateUI(true);

} else {
} else {
// Signed out, show unauthenticated UI.
// Signed out, show unauthenticated UI.
updateUI(false);
updateUI(false);
}
}
}
}