Address some deprecations

(cherry picked from commit d53a3828b12daead9c898bea12c9a1497d07366f)
This commit is contained in:
AntsyLich
2025-01-21 08:55:34 +06:00
committed by Jobobby04
parent 0ab7d18ad3
commit 2744a8bd96
5 changed files with 12 additions and 7 deletions
@@ -25,6 +25,7 @@ class ExtensionInstallActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
@Suppress("DEPRECATION")
val installIntent = Intent(Intent.ACTION_INSTALL_PACKAGE)
.setDataAndType(intent.data, intent.type)
.putExtra(Intent.EXTRA_RETURN_RESULT, true)
@@ -663,8 +663,10 @@ class ReaderActivity : BaseActivity() {
SurfaceColors.SURFACE_2.getColor(this),
if (isNightMode()) 230 else 242, // 90% dark 95% light
)
@Suppress("DEPRECATION")
window.statusBarColor = toolbarColor
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
@Suppress("DEPRECATION")
window.navigationBarColor = toolbarColor
}