diff --git a/lib_base/src/main/java/com/android/base/app/fragment/tools/TabManager.java b/lib_base/src/main/java/com/android/base/app/fragment/tools/TabManager.java index dbc1f0c..727e8b8 100644 --- a/lib_base/src/main/java/com/android/base/app/fragment/tools/TabManager.java +++ b/lib_base/src/main/java/com/android/base/app/fragment/tools/TabManager.java @@ -155,7 +155,11 @@ public abstract class TabManager { } FragmentInfo homePage() { - return mPages.get(0); + return mPages.get(defaultIndex()); + } + + protected int defaultIndex() { + return 0; } public int size() {