From dd1743698f477cb296778cf126cceebaf3315df3 Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 19 Apr 2021 10:24:57 -0400 Subject: [PATCH] Theme BiometricUnlockActivity to avoid flashing light theme --- .../tachiyomi/ui/security/BiometricUnlockActivity.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt index bb7ed13386..af094c1bbc 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/security/BiometricUnlockActivity.kt @@ -1,22 +1,19 @@ package eu.kanade.tachiyomi.ui.security import android.os.Bundle -import androidx.appcompat.app.AppCompatActivity import androidx.biometric.BiometricPrompt import eu.kanade.tachiyomi.R -import eu.kanade.tachiyomi.data.preference.PreferencesHelper +import eu.kanade.tachiyomi.ui.base.activity.BaseThemedActivity import eu.kanade.tachiyomi.util.system.BiometricUtil import timber.log.Timber -import uy.kohesive.injekt.injectLazy import java.util.Date import java.util.concurrent.Executors /** * Blank activity with a BiometricPrompt. */ -class BiometricUnlockActivity : AppCompatActivity() { +class BiometricUnlockActivity : BaseThemedActivity() { - private val preferences: PreferencesHelper by injectLazy() private val executor = Executors.newSingleThreadExecutor() override fun onCreate(savedInstanceState: Bundle?) {