diff --git a/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java b/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java index 1da02dc..7b18003 100644 --- a/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java +++ b/TabBarViewLibrary/src/com/mirko/tbv/TabBarView.java @@ -181,20 +181,6 @@ public void notifyDataSetChanged() { } } - - getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() { - - @SuppressLint("NewApi") - @Override - public void onGlobalLayout() { - - getViewTreeObserver().removeOnGlobalLayoutListener(this); - - mSelectedTab = pager.getCurrentItem(); - - } - }); - } private void addTabViewL(final int i, String string, int pageIconResId) { @@ -234,4 +220,4 @@ public void setOnPageChangeListener(OnPageChangeListener listener) { } -} \ No newline at end of file +}