Loading packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java +2 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
packages/SystemUI/src/com/android/systemui/qs/tiles/UsbTetherTile.java +2 −1 Original line number Diff line number Diff line Loading @@ -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; } Loading