Commit 6b4d9fa9 authored by Sebastian Kaspari's avatar Sebastian Kaspari
Browse files

Issue #1514: DisplayToolbar: Request layout after updating visibility of separator and indicators.

parent fe238962
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -411,6 +411,13 @@ class DisplayToolbar internal constructor(
        } else {
            View.GONE
        }

        // In Fenix (which is using a beta release of ConstraintLayout) we are seeing issues after
        // early visibility changes. Children of the ConstraintLayout are not visible and have a
        // size of 0x0 (even though they have a fixed size in the layout XML). Explicitly requesting
        // to layout the ConstraintLayout fixes that issue. This may be a bug in the beta of
        // ConstraintLayout and in the future we may be able to just remove this call.
        rootView.requestLayout()
    }

    /**