From 641b5c35bf454157d32bc8f423db02731ae1328e Mon Sep 17 00:00:00 2001 From: Brian Yencho Date: Thu, 30 Nov 2023 10:23:52 -0600 Subject: [PATCH] Use delegation for rememberedEmailAddress (#302) --- .../bitwarden/data/auth/repository/AuthRepositoryImpl.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt index 68ac7631b..3041426b4 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/AuthRepositoryImpl.kt @@ -102,11 +102,7 @@ class AuthRepositoryImpl constructor( override val captchaTokenResultFlow: Flow = mutableCaptchaTokenFlow.asSharedFlow() - override var rememberedEmailAddress: String? - get() = authDiskSource.rememberedEmailAddress - set(value) { - authDiskSource.rememberedEmailAddress = value - } + override var rememberedEmailAddress: String? by authDiskSource::rememberedEmailAddress override suspend fun deleteAccount(password: String): DeleteAccountResult { val profile = authDiskSource.userState?.activeAccount?.profile