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

Commit 4263a5ed authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add future consideration for USB rndis notification handling"

parents c7da241b 7111c914
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -840,6 +840,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) {