Merge "Revert "Stop usb tethering when user cancel it"" into rvc-dev am: 74755ac915
am: d3d9b3d462
am: 270646dbe1
am: b29970c5f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/11708185 Change-Id: I7b4f907acd4b747bbfe44079135edb9dcf9dea94
This commit is contained in:
@@ -89,9 +89,6 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
|
||||
@Override
|
||||
protected void refresh(boolean connected, long functions, int powerRole, int dataRole) {
|
||||
if (!connected || dataRole != DATA_ROLE_DEVICE) {
|
||||
if (mPreviousFunction == UsbManager.FUNCTION_RNDIS) {
|
||||
mConnectivityManager.stopTethering(TETHERING_USB);
|
||||
}
|
||||
mProfilesContainer.setEnabled(false);
|
||||
} else {
|
||||
// Functions are only available in device mode
|
||||
@@ -132,9 +129,6 @@ public class UsbDetailsFunctionsController extends UsbDetailsController
|
||||
mConnectivityManager.startTethering(TETHERING_USB, true /* showProvisioningUi */,
|
||||
mOnStartTetheringCallback);
|
||||
} else {
|
||||
if (mPreviousFunction == UsbManager.FUNCTION_RNDIS) {
|
||||
mConnectivityManager.stopTethering(TETHERING_USB);
|
||||
}
|
||||
mUsbBackend.setCurrentFunctions(function);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user