Merge "Fix talkback will not speak correct status"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e496d7e411
@@ -114,16 +114,16 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
|
|||||||
if (function != previousFunction && !Utils.isMonkeyRunning()) {
|
if (function != previousFunction && !Utils.isMonkeyRunning()) {
|
||||||
mPreviousFunction = previousFunction;
|
mPreviousFunction = previousFunction;
|
||||||
|
|
||||||
if (function == UsbManager.FUNCTION_RNDIS) {
|
//Update the UI in advance to make it looks smooth
|
||||||
//Update the UI in advance to make it looks smooth
|
final RadioButtonPreference prevPref =
|
||||||
final RadioButtonPreference prevPref =
|
(RadioButtonPreference) mProfilesContainer.findPreference(
|
||||||
(RadioButtonPreference) mProfilesContainer.findPreference(
|
UsbBackend.usbFunctionsToString(mPreviousFunction));
|
||||||
UsbBackend.usbFunctionsToString(mPreviousFunction));
|
if (prevPref != null) {
|
||||||
if (prevPref != null) {
|
prevPref.setChecked(false);
|
||||||
prevPref.setChecked(false);
|
preference.setChecked(true);
|
||||||
preference.setChecked(true);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if (function == UsbManager.FUNCTION_RNDIS) {
|
||||||
// We need to have entitlement check for usb tethering, so use API in
|
// We need to have entitlement check for usb tethering, so use API in
|
||||||
// ConnectivityManager.
|
// ConnectivityManager.
|
||||||
mConnectivityManager.startTethering(TETHERING_USB, true /* showProvisioningUi */,
|
mConnectivityManager.startTethering(TETHERING_USB, true /* showProvisioningUi */,
|
||||||
|
Reference in New Issue
Block a user