optimize TabManager

androidx
Ztiany 5 years ago
parent ae8a8ce41f
commit a75bcc5d35
  1. 6
      lib_base/src/main/java/com/android/base/app/fragment/tools/TabManager.java

@ -155,7 +155,11 @@ public abstract class TabManager {
} }
FragmentInfo homePage() { FragmentInfo homePage() {
return mPages.get(0); return mPages.get(defaultIndex());
}
protected int defaultIndex() {
return 0;
} }
public int size() { public int size() {

Loading…
Cancel
Save