mirror of
https://github.com/material-components/material-components-android.git
synced 2026-01-20 03:51:33 +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
28 lines
973 B
Java
28 lines
973 B
Java
/*
|
|
* Copyright (C) 2017 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package android.support.design.testapp;
|
|
|
|
import android.support.design.testapp.base.BaseTestActivity;
|
|
|
|
/** Activity that shows an AppBarLayout that has a scrollbar. */
|
|
public class AppBarWithScrollbarsActivity extends BaseTestActivity {
|
|
@Override
|
|
protected int getContentViewLayoutResId() {
|
|
return R.layout.design_appbar_with_scrollbars;
|
|
}
|
|
}
|