瀏覽代碼

Fixed again

inorichi 9 年之前
父節點
當前提交
f26a60f1ba
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java

+ 4 - 0
app/src/main/java/eu/kanade/mangafeed/ui/library/LibraryFragment.java

@@ -129,6 +129,10 @@ public class LibraryFragment extends BaseRxFragment<LibraryPresenter>
         }
         // Restore active category
         viewPager.setCurrentItem(activeCat, false);
+        if (tabs.getTabCount() > 0) {
+            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));