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

Unverified Commit 9b20a23f authored by ShevT's avatar ShevT Committed by LuK1337
Browse files

UsbTetherTile: Check for UsbManager.USB_FUNCTION_NCM as well

Change-Id: I5b8cd4dd28a9986bbb5cd333801c3fefa91ffc12
parent fa59c210
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ public class UsbTetherTile extends QSTileImpl<BooleanState> {
        public void onReceive(Context context, Intent intent) {
            mUsbConnected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false);
            if (mUsbConnected && mTetheringManager.isTetheringSupported()) {
                mUsbTetherEnabled = intent.getBooleanExtra(UsbManager.USB_FUNCTION_RNDIS, false);
                mUsbTetherEnabled = intent.getBooleanExtra(UsbManager.USB_FUNCTION_RNDIS, false) ||
                        intent.getBooleanExtra(UsbManager.USB_FUNCTION_NCM, false);
            } else {
                mUsbTetherEnabled = false;
            }