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

Commit c06ae36f authored by William Escande's avatar William Escande
Browse files

SystemServer: AutoOn: Handle user switch

Each user may have different auto on settings to restart bluetooth.

Bug: 323060869
Bug: 316946334
Test: m Bluetooth | there is no test associated with user switching
Change-Id: Icf70a4aa6da926d741582b71130a4a913b0a3f4a
parent 28df4381
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1961,6 +1961,8 @@ class BluetoothManagerService {
                        mBluetoothNotificationManager.createNotificationChannels();
                    }

                    AutoOnFeature.pause();

                    mCurrentUserContext = mContext.createContextAsUser(userTo, 0);

                    /* disable and enable BT when detect a user switch */
@@ -1978,6 +1980,8 @@ class BluetoothManagerService {
                                        + (" number of retry attempt=" + userMsg.arg1)
                                        + (" isBinding=" + isBinding())
                                        + (" mAdapter=" + mAdapter));
                    } else {
                        autoOnSetupTimer();
                    }
                    break;