commit | ee01b9bca75c41beddce986596a91ecec12eca5e | [log] [tgz] |
---|---|---|
author | Kirill Grouchnikov <kirillg@google.com> | Tue Apr 18 11:15:28 2017 -0400 |
committer | Kirill Grouchnikov <kirillg@google.com> | Tue Apr 18 11:18:30 2017 -0400 |
tree | 44842f2a965c14ce5784de0deceddac9af5788f9 | |
parent | 0eb50f95ba6f97fc423eef9cbaf8ba3c393b50c7 [diff] |
Don't crash in AppBarLayout inflation 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