Fix build broken

- It's because we refactored BuildCompat to BuildCompatUtils and didn't
  replace it in another CL at the same time.

Fixes: 191628501
Test: rebuild
Change-Id: Ibeb231a268465f2642b9452c1760492a65c67254
This commit is contained in:
Edgar Wang
2021-06-21 18:32:40 +08:00
parent 40c606b4f9
commit fce3f0fd2b

View File

@@ -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(