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

Commit dc2bc8dc authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove hidden dependency on HandlerThread"

parents cb97cc4a 17f19598
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);
        }
    }