Skip to content

Commit 9be8949

Browse files
CopilotVegardHV
andauthored
Merge main into branch, resolve CHANGELOG conflict
Co-authored-by: VegardHV <71251242+VegardHV@users.noreply.github.com>
2 parents f9d67aa + f2ba7bc commit 9be8949

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## [55.6.9]
22
- [Android][Camera] Moved shutter animation from shutter button press to when the image capture has started
33
- [Android][Camera] Added a hint to keep the camera still for devices that don't support Zero-Shutter-Lag
4+
- [SortControlBottomSheet] Fix memory leak.
45

56
## [55.6.8]
67
- [Shell] Fixed memory leak when Shell items change where child component handlers were not disconnected on iOS, and neither page nor child handlers were disconnected on Android

src/library/DIPS.Mobile.UI/Components/Sorting/SortControlBottomSheet.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace DIPS.Mobile.UI.Components.Sorting;
1919

2020
internal class SortControlBottomSheet : BottomSheet
2121
{
22-
private readonly SortControl m_sortControl;
22+
private SortControl m_sortControl;
2323

2424
private readonly CollectionView m_collectionView = new() { ItemSpacing = Sizes.GetSize(SizeName.size_0)};
2525

@@ -115,7 +115,16 @@ private object LoadTemplate()
115115
return radioButtonListItem;
116116
}
117117

118-
118+
119+
protected override void OnHandlerChanged()
120+
{
121+
base.OnHandlerChanged();
122+
123+
if (Handler is null)
124+
{
125+
m_sortControl = null;
126+
}
127+
}
119128
}
120129
internal class SortElementHintConverter : IValueConverter
121130
{

0 commit comments

Comments
 (0)