Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dlam
Copy link
Member

@dlam dlam commented Aug 31, 2022

Re-merging this PR, but properly via copybara this time :)

Hello, there will be a memory leak when calling activity.shouldShowRequestPermissionRationale in Android 12. The problem is fixed in Android 12L, but it is still a legacy in Android 12. It is recommended to reflect the application.shouldShowRequestPermissionRationale method to avoid this problem.

Testing
Test: manually ran with LeakCanary

ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this, Manifest.permission.CAMERA);
finish();
Use leakcanary to view memory leaks

Fixes: 212113500
Fixes: 207946473
Fixes: 204539732

@alanv alanv self-assigned this Aug 31, 2022
@copybara-service copybara-service bot closed this in dfba77c Sep 1, 2022
@getActivity
Copy link
Contributor

#435

@getActivity
Copy link
Contributor

@dlam @alanv Hi, why are you making another code merge request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants