Skip to content

[camerax] Remove references to Activitys when plugin is detached #139937

@camsim99

Description

@camsim99

In the camera_android_camerax plugin, some host API implementations use references to the FlutterActivity to which the plugin is attached (see source) to make Android API calls. We should ensure that any references to this Activity are removed once the plugin is detached from it, e.g. in the onDetachedFromActivity() lifecycle method to avoid a memory leak or side effects (see docs).

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.team-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions