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

Commit 12905681 authored by Erik Kline's avatar Erik Kline
Browse files

Add future consideration for USB rndis notification handling

Test: builds
Bug: 63970368
Change-Id: Ic9ca133a44123f281bd4cfeac57d426346c2b76d
parent 07df171a
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) {