Remove onClickableListener on MainSwitchBar's switch since it has been set to not focusable and not clickable.

Fix: 230266556
Test: manually verified
Change-Id: Iee3649a37727e3f845e4c17576cf577270befd95
This commit is contained in:
Jacqueline Huang
2022-05-12 19:08:43 +08:00
parent 59ebb04c78
commit 08eeec366e

View File

@@ -30,7 +30,6 @@ import android.widget.Switch;
import android.widget.TextView;
import androidx.annotation.ColorInt;
import androidx.annotation.Nullable;
import com.android.settingslib.utils.BuildCompatUtils;
@@ -122,15 +121,10 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
propagateChecked(isChecked);
}
@Override
public void setOnClickListener(@Nullable OnClickListener l) {
super.setOnClickListener(l);
mSwitch.setOnClickListener(l);
}
@Override
public boolean performClick() {
return mSwitch.performClick();
mSwitch.performClick();
return super.performClick();
}
/**