From 926eea91deba8e02929adf25b6b8b2cce4197667 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Tue, 13 Dec 2022 08:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 7371ce1c8..6b700b8bc 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -191,6 +191,11 @@ class ReadBookActivity : BaseReadBookActivity(), viewModel.initData(intent) } + override fun onNewIntent(intent: Intent?) { + super.onNewIntent(intent) + viewModel.initData(intent ?: return) + } + override fun onWindowFocusChanged(hasFocus: Boolean) { super.onWindowFocusChanged(hasFocus) upSystemUiVisibility()