-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Milestone
Description
Step 1: Describe your environment
- Android device: Nexus 6
- Android OS version: 7.0
- Google Play Services version: 10.0.84
- Firebase/Play Services SDK version: 9.8.0
- FirebaseUI version: 1.0.0
Step 2: Describe the problem:
After logging in with Google LeakCanary reports a leak in AuthMethodPickerActivity https://goo.gl/photos/6WdtNQCU158zeJAT9
Steps to reproduce:
- Create SignIn intent using AuthUI
- Select Google to sign in
Observed Results:
Leak detected
Expected Results:
Should not leak memory
Relevant Code:
activity.startActivityForResult(AuthUI.getInstance()
.createSignInIntentBuilder()
.setProviders(Arrays.asList(new Builder(AuthUI.EMAIL_PROVIDER).build(),
new Builder(AuthUI.GOOGLE_PROVIDER).build(),
new Builder(AuthUI.FACEBOOK_PROVIDER).build(),
new Builder(AuthUI.TWITTER_PROVIDER).build()))
.build(), RC_SIGN_IN);
Also after the smart lock is enabled and I click sign in I get another leak but now I don't have to pick a provider (as it is remembered) but it automatically logs in with google and leak canary reports again on ChooseAccountActivity https://goo.gl/photos/hFMoq7tiK9C2U5Pt7