Fix build broken am: fce3f0fd2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15026548 Change-Id: I10bf8304b7414aade8e20f73d19c4de3620bb0a9
This commit is contained in:
@@ -89,7 +89,7 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
|
|||||||
mFrameView = findViewById(R.id.frame);
|
mFrameView = findViewById(R.id.frame);
|
||||||
mTextView = (TextView) findViewById(R.id.switch_text);
|
mTextView = (TextView) findViewById(R.id.switch_text);
|
||||||
mSwitch = (Switch) findViewById(android.R.id.switch_widget);
|
mSwitch = (Switch) findViewById(android.R.id.switch_widget);
|
||||||
if (BuildCompat.isAtLeastS()) {
|
if (BuildCompatUtils.isAtLeastS()) {
|
||||||
mBackgroundOn = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_on);
|
mBackgroundOn = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_on);
|
||||||
mBackgroundOff = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_off);
|
mBackgroundOff = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_off);
|
||||||
mBackgroundDisabled = getContext().getDrawable(
|
mBackgroundDisabled = getContext().getDrawable(
|
||||||
|
|||||||
Reference in New Issue
Block a user