Fix clicking MainSwitchPreference, there will be two touch sounds

Bug: 284855815
Test: manual
Change-Id: I9867c55a9f8d2a1e15912915485953e0958ba31f
This commit is contained in:
Edgar Wang
2023-07-25 22:44:51 +08:00
parent 77c76ec98c
commit cffc4354ee

View File

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