fix: remove logs
This commit is contained in:
@@ -40,7 +40,6 @@ class BiometricPreferences(private val context: Context) {
|
||||
try {
|
||||
_isBiometricEnabled.value = encryptedPrefs.getBoolean(KEY_BIOMETRIC_ENABLED, false)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to read biometric enabled state", e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +62,6 @@ class BiometricPreferences(private val context: Context) {
|
||||
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "Failed to create EncryptedSharedPreferences, falling back", e)
|
||||
// Fallback на обычные SharedPreferences в случае ошибки (не должно произойти)
|
||||
return context.getSharedPreferences(PREFS_FILE_NAME + "_fallback", Context.MODE_PRIVATE)
|
||||
}
|
||||
@@ -97,7 +95,6 @@ class BiometricPreferences(private val context: Context) {
|
||||
suspend fun saveEncryptedPassword(publicKey: String, encryptedPassword: String) = withContext(Dispatchers.IO) {
|
||||
val key = "$ENCRYPTED_PASSWORD_PREFIX$publicKey"
|
||||
encryptedPrefs.edit().putString(key, encryptedPassword).apply()
|
||||
Log.d(TAG, "Encrypted password saved for account")
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -114,7 +111,6 @@ class BiometricPreferences(private val context: Context) {
|
||||
suspend fun removeEncryptedPassword(publicKey: String) = withContext(Dispatchers.IO) {
|
||||
val key = "$ENCRYPTED_PASSWORD_PREFIX$publicKey"
|
||||
encryptedPrefs.edit().remove(key).apply()
|
||||
Log.d(TAG, "Encrypted password removed for account")
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -123,7 +119,6 @@ class BiometricPreferences(private val context: Context) {
|
||||
suspend fun clearAll() = withContext(Dispatchers.IO) {
|
||||
encryptedPrefs.edit().clear().apply()
|
||||
_isBiometricEnabled.value = false
|
||||
Log.d(TAG, "All biometric data cleared")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user