divya2392 / UdacityFireBase

This repository contains code for the FriendlyChat project in the Firebase in a Weekend: Android by Google Udacity course.
Apache License 2.0
0 stars 0 forks source link

On back pressed bug #2

Open divya2392 opened 7 years ago

divya2392 commented 7 years ago

when am in login screen have small bug when i am doing back pressed

@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(this, "Signed in", Toast.LENGTH_SHORT).show(); }else if (resultCode == RESULT_CANCELED) { Toast.makeText(this, "Sign in cancled", Toast.LENGTH_SHORT).show(); finish(); //activity not finish } } }

PreetiW commented 7 years ago

@divya2392 This one is fixed, right? comment the solution and then close it!