Skip to content

Commit

Permalink
Merge branch 'r4.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed Dec 5, 2024
2 parents 7cccf5f + f2ec075 commit ab2c995
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import androidx.fragment.app.FragmentManager
import net.osmand.plus.R
import net.osmand.plus.myplaces.tracks.DialogClosedListener
import net.osmand.plus.myplaces.tracks.EmptySmartFolderListener
import net.osmand.plus.myplaces.tracks.ItemsSelectionHelper
import net.osmand.plus.utils.AndroidUtils
import net.osmand.plus.widgets.popup.PopUpMenu
import net.osmand.plus.widgets.popup.PopUpMenuDisplayData
Expand Down Expand Up @@ -153,4 +154,13 @@ class SmartFolderFragment : TrackFolderFragment(), SmartFolderUpdateListener,
override fun onDialogClosed() {
updateContent()
}

override fun getSelectionHelper(): ItemsSelectionHelper<TrackItem> {
return ItemsSelectionHelper<TrackItem>().apply {
val items = smartFolder.getTrackItems()
setAllItems(items)
setSelectedItems(items)
setOriginalSelectedItems(items)
}
}
}

0 comments on commit ab2c995

Please sign in to comment.