Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Update MediaPickerActivity.cs
Browse files Browse the repository at this point in the history
Following Scastria comment from the bug -
#598 (comment)
If we null out the completionsource on sleep, which will call OnDestry to the media Activity, it fixes the issue
  • Loading branch information
vagrawal1986 authored Jan 3, 2019
1 parent cf0fb9f commit 0bc5eca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Media.Plugin/Android/MediaPickerActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ protected override void OnDestroy()
if(!completed)
{
DeleteOutputFile();
MediaImplementation.completionSource = null;
MediaPicked = null;
}
base.OnDestroy();
}
Expand Down

0 comments on commit 0bc5eca

Please sign in to comment.