From 8e857e2457f94766ea1f8bc034a14e50caa3ff8c Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 26 Nov 2019 14:37:49 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 0f1d4f0d4..e70896f09 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -20,11 +20,13 @@ import io.legado.app.ui.main.bookshelf.BookshelfFragment import io.legado.app.ui.main.explore.ExploreFragment import io.legado.app.ui.main.my.MyFragment import io.legado.app.ui.main.rss.RssFragment +import io.legado.app.ui.widget.page.ChapterProvider import io.legado.app.utils.getPrefInt import io.legado.app.utils.getViewModel import io.legado.app.utils.observeEvent import io.legado.app.utils.putPrefInt import kotlinx.android.synthetic.main.activity_main.* +import kotlinx.android.synthetic.main.view_book_page.* class MainActivity : VMBaseActivity(R.layout.activity_main), BottomNavigationView.OnNavigationItemSelectedListener, @@ -36,6 +38,7 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), private var pagePosition = 0 override fun onActivityCreated(savedInstanceState: Bundle?) { + ChapterProvider.textView = content_text_view ATH.applyEdgeEffectColor(view_pager_main) ATH.applyBottomNavigationColor(bottom_navigation_view) view_pager_main.offscreenPageLimit = 3