commit | 0466c6e005aaa1c5889ba368e3cacb502588adf4 | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Tue Feb 04 18:12:45 2020 +0800 |
committer | Arc Wang <arcwang@google.com> | Tue Feb 04 18:26:33 2020 +0800 |
tree | d6833bdc7bfb3e8f8e40c5f5e06bc26cb9a1a58a | |
parent | 07c1cdb77e97a011ea66b2924ee21dab4f39a465 [diff] |
Ignore drag action on the switch button of MasterSwitchPreference MasterSwitchPreference provides a toggle switch and it only acts for clicking events. This fix consumes move events to ignore drag actions. Bug: 148770615 Test: make RunSettingsRoboTests ROBOTEST_FILTER=MasterSwitchPreferenceTest Manually drag the switch button of MasterSwitchPreference and observe the switch state is not changed. Change-Id: I0d8b947b32d35b85403fc65605c18c09a4053135