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
// Udacity - Does not working | |
@Override | |
public void onActivityResult(int requestCode, int resultCode, Intent data) { | |
super.onActivityResult(requestCode, resultCode, data); | |
if (requestCode == RC_SIGN_IN) { | |
if (resultCode == RESULT_OK) { | |
Toast.makeText(getContext(), "Signed in!", Toast.LENGTH_SHORT).show(); | |
} else if (resultCode == RESULT_CANCELED) { | |
Toast.makeText(getContext(), "Sign in canceled", Toast.LENGTH_SHORT).show(); | |
getActivity().finish(); |