package baidu.com.commontools.utils;


import android.os.Handler;
import android.os.HandlerThread;

public class AsyncHandler {

    private static class SingletonHolder {
        private static AsyncHandler sInstance = new AsyncHandler();
    }

    private Handler mHandler;

    public static AsyncHandler getInstance() {
        return SingletonHolder.sInstance;
    }

    public AsyncHandler() {
        HandlerThread handlerThread = new HandlerThread("AsyncHandler");
        handlerThread.start();
        mHandler = new Handler(handlerThread.getLooper());
    }

    public void post(Runnable r) {
        mHandler.post(r);
    }

    public void postDelayed(Runnable r, long delayMillis) {
        mHandler.postDelayed(r, delayMillis);
    }
}

@@ -372,21 +372,22 @@
 %7D%0A%0A    p
-ublic
+rivate
  AsyncHa

change : remove AsyncHandler public constructor.