Fix talkback will not speak correct status
Update the UI in advance when user select any option. In this CL before, the UI update in advance only when user select "USB tethering". Bug: 141161849 Test: make -j42 RunSettingsRoboTests Change-Id: I1fa4b20408a00b06d7c8fac6136c63df7406154d
This commit is contained in:
@@ -114,7 +114,6 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
|
||||
if (function != previousFunction && !Utils.isMonkeyRunning()) {
|
||||
mPreviousFunction = previousFunction;
|
||||
|
||||
if (function == UsbManager.FUNCTION_RNDIS) {
|
||||
//Update the UI in advance to make it looks smooth
|
||||
final RadioButtonPreference prevPref =
|
||||
(RadioButtonPreference) mProfilesContainer.findPreference(
|
||||
@@ -124,6 +123,7 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
|
||||
preference.setChecked(true);
|
||||
}
|
||||
|
||||
if (function == UsbManager.FUNCTION_RNDIS) {
|
||||
// We need to have entitlement check for usb tethering, so use API in
|
||||
// ConnectivityManager.
|
||||
mConnectivityManager.startTethering(TETHERING_USB, true /* showProvisioningUi */,
|
||||
|
Reference in New Issue
Block a user