0

when we run this code app is crashing and if I remove this code app work without any problem why this is happening? what is wrong here?

 mAuth=FirebaseAuth.getInstance();
    //_FirebaseImageUploader m_FirebaseImageUploader;
    if(mAuth!=null?mAuth.getCurrentUser()!=null?true:false:false){

    }
    else{
        List<AuthUI.IdpConfig> providers = Arrays.asList(
                new AuthUI.IdpConfig.EmailBuilder().build(),
                new AuthUI.IdpConfig.PhoneBuilder().build(),
                new AuthUI.IdpConfig.GoogleBuilder().build());// Create and launch sign-in intent
        startActivityForResult(
                AuthUI.getInstance()
                        .createSignInIntentBuilder()
                        .setAvailableProviders(providers)
                        .build(),
                RC_SIGN_IN);
    }
Edric
  • 21,480
  • 12
  • 75
  • 86
Midhilaj
  • 4,581
  • 7
  • 37
  • 75

0 Answers0