package com.laxture.lib.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TabHost;

public class TabHostExt extends TabHost {

    private OnTabClickListener mOnTabClickListener;
    public void setOnTabClickListener(OnTabClickListener listener) {
        mOnTabClickListener = listener;
    }

    public TabHostExt(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public TabHostExt(Context context) {
        super(context);
    }

    @Override
    public void setCurrentTab(int index) {
        if (mOnTabClickListener != null)
            mOnTabClickListener.onTabClick(index);

        super.setCurrentTab(index);
    }

    public interface OnTabClickListener {
        void onTabClick(int index);
    }

    @Override
    public void onTouchModeChanged(boolean isInTouchMode) {
        // do nothing
    }

}

@@ -496,32 +496,120 @@
 ontext);%0A    %7D%0A%0A
+    public void focusCurrentTab(int index) %7B%0A        super.setCurrentTab(index);%0A    %7D%0A%0A
     @Override%0A  
@@ -688,16 +688,44 @@
  != null
+ && getCurrentTab() == index
 )%0A      

Fix TabHostExt