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

Commit 986c88fc authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge "{HidDevice,Pan}Service: Use explicit looper" into main

parents 22fdb53e 3213932a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import android.content.Intent;
import android.os.Binder;
import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import android.os.Process;
import android.os.RemoteException;
@@ -91,6 +92,10 @@ public class HidDeviceService extends ProfileService {
    }

    private class HidDeviceServiceHandler extends Handler {
        HidDeviceServiceHandler(Looper looper) {
            super(looper);
        }

        @Override
        public void handleMessage(Message msg) {
            if (DBG) {
@@ -770,7 +775,7 @@ public class HidDeviceService extends ProfileService {
        mDatabaseManager = Objects.requireNonNull(AdapterService.getAdapterService().getDatabase(),
                "DatabaseManager cannot be null when HidDeviceService starts");

        mHandler = new HidDeviceServiceHandler();
        mHandler = new HidDeviceServiceHandler(Looper.getMainLooper());
        mHidDeviceNativeInterface = HidDeviceNativeInterface.getInstance();
        mHidDeviceNativeInterface.init();
        mNativeAvailable = true;
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ public class PanService extends ProfileService {
    }

    private final Handler mHandler =
            new Handler() {
            new Handler(Looper.getMainLooper()) {
                @Override
                public void handleMessage(Message msg) {
                    switch (msg.what) {