app/src/main/java/com/aclogar/choremanager/MainActivity.java
public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        loadTasks();
        if (requestCode == 1) {
            if(resultCode == RESULT_OK){
                String enteredEmail =
                        User.getCurrentUser(getBaseContext());
                //data.getStringExtra("email");
                TextView tv = (TextView)findViewById(R.id.user_email);
                if (tv != null && !enteredEmail.equals(User.DEFAULT_USER)) {
                    tv.setText(enteredEmail);
                }

            }
        }
    }
/*
    This gets us the email that was verified in the login page
     */
This gets us the email that was verified in the login page
This gets us the email that was verified in the login page
public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        loadTasks();
        if (requestCode == 1) {
            if(resultCode == RESULT_OK){
                String enteredEmail =
                        User.getCurrentUser(getBaseContext());
                TextView tv = (TextView)findViewById(R.id.user_email);
                if (tv != null && !enteredEmail.equals(User.DEFAULT_USER)) {
                    tv.setText(enteredEmail);
                }
            }
        }
    }
public void onActivityResult ( int requestCode , int resultCode , Intent data ) { super . onActivityResult ( requestCode , resultCode , data ) ; loadTasks ( ) ; if ( requestCode == 1 ) { if ( resultCode == RESULT_OK ) { String enteredEmail = User . getCurrentUser ( getBaseContext ( ) ) ; TextView tv = ( TextView ) findViewById ( R . id . user_email ) ; if ( tv != null && ! enteredEmail . equals ( User . DEFAULT_USER ) ) { tv . setText ( enteredEmail ) ; } } } }
This gets us the email that was verified in the login page
This gets us the email that was verified in the login page
//data.getStringExtra("email");