Revert "Fix clicking MainSwitchPreference, there will be two touch sounds"

This reverts commit cffc4354ee.

Reason for revert: I am investigating the presubmit failure https://android-build.corp.google.com/test_investigate/?invocationId=I93100010183816709&testResultId=TR21628833881709462
It started failing on 12:59 AM Aug 2, 2023, Pacific time, which is the same as this CL's submit time, and it is related to MainSwitchBar. I am suspecting this CL is the culprit of the test failure b/294186307

Change-Id: I1277c01348abfe4372de9c47c852e6ce7df6a1cf
This commit is contained in:
Bo Zhao
2023-08-03 04:06:34 +00:00
committed by Android (Google) Code Review
parent cffc4354ee
commit 6dc9658481

View File

@@ -123,7 +123,8 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
@Override
public boolean performClick() {
return mSwitch.performClick();
mSwitch.performClick();
return super.performClick();
}
/**