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

Commit 9b2575c5 authored by Fabián Kozynski's avatar Fabián Kozynski
Browse files

Fix parameter generation

The bitfield was not being operated correctly and we were repeating the
parameters. Do the right thing now.

Test: atest QSFragmentComposeViewModelForceQSTest, check that the
parameters are all different
Fixes: 370457898
Flag: EXEMPT bugfix test

Change-Id: I21ce0bde64d5a47a62720bdbd9d52d4d15cb71e1
parent 27a0aa54
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -82,11 +82,11 @@ class QSFragmentComposeViewModelForceQSTest(private val testData: TestData) :
                (0u..31u).map { bitfield ->
                    TestData(
                        statusBarState,
                        expanded = (bitfield or 1u) == 1u,
                        stackScrollerOverScrolling = (bitfield or 2u) == 1u,
                        bypassEnabled = (bitfield or 4u) == 1u,
                        transitioningToFullShade = (bitfield or 8u) == 1u,
                        inSplitShade = (bitfield or 16u) == 1u,
                        expanded = (bitfield and 1u) == 1u,
                        stackScrollerOverScrolling = (bitfield and 2u) == 2u,
                        bypassEnabled = (bitfield and 4u) == 4u,
                        transitioningToFullShade = (bitfield and 8u) == 8u,
                        inSplitShade = (bitfield and 16u) == 16u,
                    )
                }
            }