package devfest.controller;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.auth.FirebaseUser;

import devfest.controller.utils.FB;

/**
 * Created by Brusd on 7/16/2016.
 */

public class BaseActivity extends AppCompatActivity implements FirebaseAuth.AuthStateListener {

    public FirebaseUser user;
    private FB fb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        fb = FB.getInstance();
    }

    @Override
    public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {


    }
    public void goToLoginScreen(){
        Intent intent = new Intent(this, LoginActivity.class);
        startActivity(intent);
        Log.e("WHF?", "goToLoginScreen");
    }

    @Override
    protected void onResume() {
        super.onResume();

    }
}

@@ -294,45 +294,8 @@
 r;%0A%0A
-import devfest.controller.utils.FB;%0A%0A
 /**%0A
@@ -463,27 +463,8 @@
 ser;
-%0A    private FB fb;
 %0A%0A  
@@ -580,39 +580,8 @@
 e);%0A
-        fb = FB.getInstance();%0A
     
@@ -670,24 +670,23 @@
 Auth) %7B%0A
-%0A%0A
     %7D%0A
+%0A
     publ
@@ -927,17 +927,16 @@
 sume();%0A
-%0A
     %7D%0A%7D%0A

clean Base Activity