Fix inconsistent tab layout
This commit is contained in:
parent
ef444b0b63
commit
a794bea9e7
@ -129,6 +129,8 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
|
|||||||
}
|
}
|
||||||
// Restore active category
|
// Restore active category
|
||||||
viewPager.setCurrentItem(activeCat, false);
|
viewPager.setCurrentItem(activeCat, false);
|
||||||
|
TabLayout.Tab tab = tabs.getTabAt(viewPager.getCurrentItem());
|
||||||
|
if (tab != null) tab.select();
|
||||||
|
|
||||||
// Send the mangas to child fragments after the adapter is updated
|
// Send the mangas to child fragments after the adapter is updated
|
||||||
EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));
|
EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
android:background="@color/colorPrimary"
|
android:background="@color/colorPrimary"
|
||||||
android:elevation="4dp"
|
android:elevation="4dp"
|
||||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||||
app:layout_scrollFlags="scroll|enterAlways"
|
app:layout_scrollFlags="scroll|enterAlways|snap"
|
||||||
app:popupTheme="@style/AppTheme.Popup" />
|
app:popupTheme="@style/AppTheme.Popup" />
|
Loading…
Reference in New Issue
Block a user