Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix inconsistent tab layout

Cette révision appartient à :
inorichi 2015-12-30 19:29:25 +01:00
Parent ef444b0b63
révision a794bea9e7
2 fichiers modifiés avec 3 ajouts et 1 suppressions

Voir le fichier

@ -129,6 +129,8 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
}
// Restore active category
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
EventBus.getDefault().postSticky(new LibraryMangasEvent(mangas));

Voir le fichier

@ -7,5 +7,5 @@
android:background="@color/colorPrimary"
android:elevation="4dp"
android:theme="@style/ThemeOverlay.AppTheme.Dark"
app:layout_scrollFlags="scroll|enterAlways"
app:layout_scrollFlags="scroll|enterAlways|snap"
app:popupTheme="@style/AppTheme.Popup" />