Merge "Fix a small issue with the BT Tether callback value."

This commit is contained in:
Jeremy Klein
2016-02-05 18:50:57 +00:00
committed by Android (Google) Code Review

View File

@@ -451,7 +451,7 @@ public class Tethering extends BaseNetworkObserver {
((BluetoothPan) proxy).setBluetoothTethering(enable);
// TODO: Enabling bluetooth tethering can fail asynchronously here.
// We should figure out a way to bubble up that failure instead of sending success.
int result = ((BluetoothPan) proxy).isTetheringOn() ?
int result = ((BluetoothPan) proxy).isTetheringOn() == enable ?
ConnectivityManager.TETHER_ERROR_NO_ERROR :
ConnectivityManager.TETHER_ERROR_MASTER_ERROR;
sendTetherResult(receiver, result);