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

Commit a31bc79b authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Reset bundle header switch state on reattach" into main

parents 2a98347d a5e703a4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ class BundleHeaderGutsContent(context: Context) : GutsContent {

        composeView.repeatWhenAttached {
            repeatOnLifecycle(Lifecycle.State.CREATED) {
                // if we have an attached (visible) bundle, the BE setting and thus the switch must
                // be 'enabled'
                viewModel.switchState = true
                composeView.setContent {
                    // TODO(b/399588047): Check if we can init PlatformTheme once instead of once
                    //  per ComposeView