diff options
Diffstat (limited to 'services/usb/java/com/android')
-rw-r--r-- | services/usb/java/com/android/server/usb/UsbDeviceManager.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/services/usb/java/com/android/server/usb/UsbDeviceManager.java b/services/usb/java/com/android/server/usb/UsbDeviceManager.java index 19e39e7..7eab808 100644 --- a/services/usb/java/com/android/server/usb/UsbDeviceManager.java +++ b/services/usb/java/com/android/server/usb/UsbDeviceManager.java @@ -923,11 +923,6 @@ public class UsbDeviceManager { final int userId = UserHandle.myUserId(); long token = Binder.clearCallingIdentity(); try { - if (!QSUtils.isQSTileEnabledForUser( - mContext, QSConstants.DYNAMIC_TILE_ADB, userId)) { - return; - } - final UserHandle user = new UserHandle(userId); final int icon = QSUtils.getDynamicQSTileResIconId(mContext, userId, QSConstants.DYNAMIC_TILE_ADB); @@ -997,9 +992,7 @@ public class UsbDeviceManager { || CMSettings.Secure.getInt(mContext.getContentResolver(), CMSettings.Secure.ADB_NOTIFY, 1) == 1; boolean isActive = notifEnabled && (usbAdbActive || netAdbActive); - final boolean isEnabledForUser = QSUtils.isQSTileEnabledForUser(mContext, - QSConstants.DYNAMIC_TILE_ADB, userId); - boolean enabled = (userId == UserHandle.USER_OWNER) && isEnabledForUser && isActive; + boolean enabled = (userId == UserHandle.USER_OWNER) && isActive; if (enabled) { publishAdbCustomTile(); } else { |