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

Commit e62f8f33 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Regional: Fix usb connection bug"

parents af90dacb 8b92efc4
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -752,7 +752,7 @@ public class UsbDeviceManager {
                    //}
                }
            }
            if (id != mUsbNotificationId && mBootCompleted) {
            if (id != mUsbNotificationId) {
                // clear notification if title needs changing
                if (mUsbNotificationId != 0) {
                    mNotificationManager.cancelAsUser(null, mUsbNotificationId,
@@ -786,12 +786,16 @@ public class UsbDeviceManager {
                    mNotificationManager.notifyAsUser(null, id, notification,
                            UserHandle.ALL);
                    mUsbNotificationId = id;
                }
            }
            if (r.getBoolean(com.android.internal.R.bool.
                            always_popup_usb_computer_connection_option))
                    always_popup_usb_computer_connection_option) && mBootCompleted) {
                Intent intent = Intent.makeRestartActivityTask(
                        new ComponentName("com.android.settings",
                                "com.android.settings.UsbSettings"));
                mContext.startActivity(intent);
            }
        }
        }

        private void updateAdbNotification() {
            if (mNotificationManager == null) return;