mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-19 19:41:35 +08:00
Specific attributes used in AppBarLayout's theme will cause the super constructor to call onCreateDrawableState before class-level fields are initialized. Move the creation of temp array to be on-demand. Bug: 37460722 Test: ./gradlew support-design:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.design.widget.AppBarWithScrollbarsTest Change-Id: I086f25c676201876fd76cd3684afcab7e09436d0 PiperOrigin-RevId: 165010107