|
|
@ -4,6 +4,8 @@ import android.annotation.SuppressLint |
|
|
|
import android.app.Activity |
|
|
|
import android.app.Activity |
|
|
|
import android.content.Intent |
|
|
|
import android.content.Intent |
|
|
|
import android.content.res.Configuration |
|
|
|
import android.content.res.Configuration |
|
|
|
|
|
|
|
import android.graphics.Color |
|
|
|
|
|
|
|
import android.graphics.drawable.ColorDrawable |
|
|
|
import android.net.Uri |
|
|
|
import android.net.Uri |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Handler |
|
|
|
import android.os.Handler |
|
|
@ -30,6 +32,7 @@ import io.legado.app.help.storage.SyncBookProgress |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
import io.legado.app.lib.dialogs.noButton |
|
|
|
import io.legado.app.lib.dialogs.noButton |
|
|
|
import io.legado.app.lib.dialogs.okButton |
|
|
|
import io.legado.app.lib.dialogs.okButton |
|
|
|
|
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.lib.theme.accentColor |
|
|
|
import io.legado.app.receiver.TimeBatteryReceiver |
|
|
|
import io.legado.app.receiver.TimeBatteryReceiver |
|
|
|
import io.legado.app.service.BaseReadAloudService |
|
|
|
import io.legado.app.service.BaseReadAloudService |
|
|
@ -144,6 +147,20 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun upNavigationBarColor() { |
|
|
|
|
|
|
|
when { |
|
|
|
|
|
|
|
read_menu.isVisible -> { |
|
|
|
|
|
|
|
ATH.setNavigationBarColorAuto(this) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
ReadBookConfig.bg is ColorDrawable -> { |
|
|
|
|
|
|
|
ATH.setNavigationBarColorAuto(this, ReadBookConfig.bgMeanColor) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else -> { |
|
|
|
|
|
|
|
ATH.setNavigationBarColorAuto(this, Color.BLACK) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 初始化View |
|
|
|
* 初始化View |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -656,6 +673,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
override fun upSystemUiVisibility() { |
|
|
|
override fun upSystemUiVisibility() { |
|
|
|
Help.upSystemUiVisibility(this, !read_menu.isVisible) |
|
|
|
Help.upSystemUiVisibility(this, !read_menu.isVisible) |
|
|
|
|
|
|
|
upNavigationBarColor() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|