Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Friendly chat developer tutorial section 6 #69

Closed
el-samiyel opened this issue Aug 11, 2016 · 2 comments
Closed

Friendly chat developer tutorial section 6 #69

el-samiyel opened this issue Aug 11, 2016 · 2 comments
Assignees

Comments

@el-samiyel
Copy link

Hi,
Regarding "https://codelabs.developers.google.com/codelabs/firebase-android/#5"
When I reach stage 6 - "Then add a new case to onOptionsItemSelected() to handle the sign out button:"

@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.sign_out_menu: mFirebaseAuth.signOut(); Auth.GoogleSignInApi.signOut(mGoogleApiClient); mUsername = ANONYMOUS; startActivity(new Intent(this, SignInActivity.class)); return true; default: return super.onOptionsItemSelected(item); } }

line:
mFirebaseAuth.signOut(); shows error "Unreachable statment".

Why is this?

Many Thanks

@kroikie kroikie self-assigned this Aug 11, 2016
@harshLFC
Copy link

Don't know

@kroikie
Copy link
Contributor

kroikie commented Jul 19, 2017

This issue was moved to firebase/codelab-friendlychat-android#17

@kroikie kroikie closed this as completed Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants