Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 394b5574 authored by Erik Kline's avatar Erik Kline Committed by android-build-merger
Browse files

Merge "Add future consideration for USB rndis notification handling" into oc-dr1-dev am: 15fbf978

am: 5ab82f94

Change-Id: I78e280c2299ec3f4d97138ca648f9629ba82e87f
parents 33227a1a 5ab82f94
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -834,6 +834,16 @@ public class Tethering extends BaseNetworkObserver {
            // For more explanation, see b/62552150 .
            synchronized (Tethering.this.mPublicSync) {
                // Always record the state of RNDIS.
                // TODO: consider:
                //     final boolean disconnected = !usbConnected;
                //     if (disconnected) {
                //         mRndisEnabled = false;
                //         mUsbTetherRequested = false;
                //         return;
                //     }
                //     final boolean configured = usbConnected && usbConfigured;
                //     mRndisEnabled = configured ? rndisEnabled : false;
                //     if (!configured) return;
                mRndisEnabled = rndisEnabled;

                if (usbConnected && !usbConfigured) {