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

Commit 519624c1 authored by William Escande's avatar William Escande
Browse files

SystemServer: ContentObserer use local looper

Not using looper may lead to race condition and multi-threading issue.
This is an obvious design error

Bug: 288450479
Test: m service-bluetooth
Flag: Exempt, Having a flag here does not add value
Change-Id: Iea8756d5a2af90b0e8ba7ccb4371026634c12f95
parent 3d03fd40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -965,7 +965,7 @@ class BluetoothManagerService {
    // Monitor change of BLE scan only mode settings.
    private void registerForBleScanModeChange() {
        ContentObserver contentObserver =
                new ContentObserver(null) {
                new ContentObserver(new Handler(mLooper)) {
                    @Override
                    public void onChange(boolean selfChange) {
                        if (isBleScanAlwaysAvailable()) {