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

Commit 7858b6c0 authored by Brad Ebinger's avatar Brad Ebinger Committed by android-build-merger
Browse files

Merge "Remove hidden dependency on HandlerThread"

am: dc2bc8dc

Change-Id: Idf31b7391d2bbee4d730904dd518b39aadecf602
parents bf620e64 dc2bc8dc
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);
        }
    }