@@ -0,0 +1,661 @@
+package me.ycdev.androidlib.base;%0A%0Aimport java.lang.ref.WeakReference;%0A%0Aimport android.os.Handler;%0Aimport android.os.Message;%0A%0Apublic class WeakHandler extends Handler %7B%0A    public interface MessageHandler %7B%0A        void handleMessage(Message msg);%0A    %7D%0A%0A    private WeakReference%3CMessageHandler%3E mTargetHandler;%0A%0A    public WeakHandler(MessageHandler msgHandler) %7B%0A        mTargetHandler = new WeakReference%3CMessageHandler%3E(msgHandler);%0A    %7D%0A%0A    @Override%0A    public void handleMessage(Message msg) %7B%0A        MessageHandler realHandler = mTargetHandler.get();%0A        if (realHandler != null) %7B%0A            realHandler.handleMessage(msg);%0A        %7D%0A    %7D%0A%7D%0A

Add WeakHandler