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

Commit 15fbf978 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add future consideration for USB rndis notification handling" into oc-dr1-dev

parents 33e014b9 12905681
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) {