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

Commit 17f19598 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Remove hidden dependency on HandlerThread

Test: atest CtsTelephonyTestCases#ImsServiceTest
Change-Id: I3c1f64bedf75771eecbca2c1dfc508cc67327d24
parent 0bee1c2d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -207,15 +207,17 @@ public class ImsManager implements IFeatureConnector {
    private static class ImsExecutorFactory implements ExecutorFactory {

        private final HandlerThread mThreadHandler;
        private final Handler mHandler;

        public ImsExecutorFactory() {
            mThreadHandler = new HandlerThread("ImsHandlerThread");
            mThreadHandler.start();
            mHandler = new Handler(mThreadHandler.getLooper());
        }

        @Override
        public void executeRunnable(Runnable runnable) {
            mThreadHandler.getThreadHandler().post(runnable);
            mHandler.post(runnable);
        }
    }