Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xuewu.wei committed Oct 25, 2017
1 parent ef46f3d commit 42d87fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -21,6 +21,7 @@ public ActionTabImpl(ActionTabView view) {
@Override
public void removeAllTabs() {
mTabs.clear();
mActionTabView.setOnTabSelectedListener(null);
mActionTabView.removeAllTabs();
}

Expand Down
Expand Up @@ -6,6 +6,7 @@
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -359,7 +360,8 @@ public boolean onLongClick(View v) {

}
public void clearLeftMenu() {
mLeftMenuLayout.findViewById(R.id.actionbar_item).setOnClickListener(null);
if( mLeftMenuLayout.getChildAt(0)!=null)
mLeftMenuLayout.getChildAt(0).setOnClickListener(null);
mLeftMenuLayout.removeAllViews();
mLeftMenuLayout.setVisibility(View.GONE);
}
Expand Down

0 comments on commit 42d87fd

Please sign in to comment.