File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/src/main/java/tech/akpmakes/android/taskkeeper Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1919
2020import com .crashlytics .android .Crashlytics ;
2121import com .firebase .ui .database .FirebaseRecyclerAdapter ;
22+ import com .google .android .gms .common .GoogleApiAvailability ;
2223import com .google .android .gms .tasks .OnCompleteListener ;
2324import com .google .android .gms .tasks .Task ;
2425import com .google .firebase .auth .AuthResult ;
@@ -48,6 +49,8 @@ protected void onCreate(Bundle savedInstanceState) {
4849 mAuth = FirebaseAuth .getInstance ();
4950 mAuth .addAuthStateListener (this );
5051
52+ GoogleApiAvailability .getInstance ().makeGooglePlayServicesAvailable (this );
53+
5154 mRemoteConfig = FirebaseRemoteConfig .getInstance ();
5255 FirebaseRemoteConfigSettings remoteConfigSettings = new FirebaseRemoteConfigSettings .Builder ()
5356 .setDeveloperModeEnabled (BuildConfig .DEBUG )
@@ -98,6 +101,7 @@ public void onAuthStateChanged(@NonNull FirebaseAuth auth) {
98101 @ Override
99102 public void onResume () {
100103 super .onResume ();
104+ GoogleApiAvailability .getInstance ().makeGooglePlayServicesAvailable (this );
101105 updateAuth ();
102106 }
103107
You can’t perform that action at this time.
0 commit comments