Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dda8fc89 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Removing notification headers as valid magnetic boundaries.

By design, views that can't be magnetically dragged (such as headers)
should not be pulled when a neighbor magnetic notification is dragged.

Test: manual. Verified notification headers (e.g., "Silent") do not move
  when dragging a neighbor notification.
Flag: com.android.systemui.magnetic_notification_swipes
Bug: 413672316
Change-Id: Id92e0a91fc5bb9cb5cb70ce4875bc8f5e3f8f7d3
parent 31cc60aa
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -222,12 +222,7 @@ class NotificationTargetsHelper @Inject constructor() {
                },
        )

    private fun ExpandableView?.isValidMagneticBoundary(): Boolean =
        when (this) {
            is NotificationShelf,
            is SectionHeaderView -> true
            else -> false
        }
    private fun ExpandableView?.isValidMagneticBoundary(): Boolean = this is NotificationShelf

    private fun ExpandableView.isValidMagneticTargetForSwiped(
        viewSwiped: ExpandableView,