{"push_id":990188527,"size":1,"distinct_size":1,"ref":"refs/heads/aosp-5.1","head":"3d157fc2742266bff15a0164955d30321f838ef6","before":"e02eca16c3d5bc65b95ffecbdf3314fc2baaa4a5","commits":[{"sha":"3d157fc2742266bff15a0164955d30321f838ef6","author":{"email":"cdeedb43633a09d3dc68b67af94002f918d6c778@intel.com","name":"JaganathX Kanakkassery"},"message":"Make the BT turn ON/OFF have the same behavior as the button\n\nTo turn ON or OFF the Bluetooth in the settings, there is two\npossibilities and they don't have the same behavior\n- The Button: when pressed, blocks until a state (ON or OFF) is reached\n- The SwitchBar (containing the Button): can be pressed whatever the\n    state of the BT (ON, OFF or between)\n\nWhen pressed, the SwitchBar set the state of the button which then calls\nthe switch function. The SwitchBAr does that wihout checking if the\nButton is cliquable, hence changing the state the BT should go to.\n\nEven if the implementation should handle it, when pressing repeatdly and\nquickly the SwitchBar, at some point, the SwitchBar hung and the BT is\nin an unknown state.\nSo the user has to leave the menu and comeback.\n\nThis patch replaces all calls of setting the Button state by calling\ndirectly the switch function adn setting the state of the SwitchBar\naccordingly.\n\nThis different behavior is only seen with BT SwitchBar. In effect, in\nWi-Fi settings, the SwitchBar has the same behavior than the button.\n\nChange-Id: I032b3cbd1095df94f33a4d43c9dc5f1ea4053d19\nSigned-off-by: JaganathX Kanakkassery <jaganathx.kanakkassery@intel.com>\nSigned-off-by: Zhiquan Liu <zhiquan.liu@intel.com>","distinct":true,"url":"https://api.github.com/repos/AOSP-JF/platform_packages_apps_Settings/commits/3d157fc2742266bff15a0164955d30321f838ef6"}]}