Fix build broken am: fce3f0fd2b am: ca0a0662d6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15026548

Change-Id: I6a5ee9cab311f9e4938090b35cdcfe6e47d11c41
This commit is contained in:
Edgar Wang
2021-06-21 12:25:19 +00:00
committed by Automerger Merge Worker

View File

@@ -89,7 +89,7 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
mFrameView = findViewById(R.id.frame);
mTextView = (TextView) findViewById(R.id.switch_text);
mSwitch = (Switch) findViewById(android.R.id.switch_widget);
if (BuildCompat.isAtLeastS()) {
if (BuildCompatUtils.isAtLeastS()) {
mBackgroundOn = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_on);
mBackgroundOff = getContext().getDrawable(R.drawable.settingslib_switch_bar_bg_off);
mBackgroundDisabled = getContext().getDrawable(