mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-12 06:19:33 +02:00
Address some deprecations
This commit is contained in:
@@ -101,7 +101,10 @@ android {
|
||||
}
|
||||
create("dev") {
|
||||
// Include pseudolocales: https://developer.android.com/guide/topics/resources/pseudolocales
|
||||
resourceConfigurations.addAll(listOf("en", "en_XA", "ar_XB", "xxhdpi"))
|
||||
androidResources {
|
||||
@Suppress("UnstableApiUsage")
|
||||
localeFilters += listOf("en", "en_XA", "ar_XB", "xxhdpi")
|
||||
}
|
||||
dimension = "default"
|
||||
}
|
||||
}
|
||||
|
@@ -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)
|
||||
|
@@ -492,8 +492,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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user