mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Reverts adding force login fallback flag to debug features
This commit is contained in:
parent
c89f28ffb2
commit
4ebaa349c3
3 changed files with 0 additions and 10 deletions
|
@ -54,11 +54,6 @@ class DebugFeaturesStateFactory @Inject constructor(
|
|||
key = DebugFeatureKeys.onboardingPersonalize,
|
||||
factory = VectorFeatures::isOnboardingPersonalizeEnabled
|
||||
),
|
||||
createBooleanFeature(
|
||||
label = "Force login fallback",
|
||||
key = DebugFeatureKeys.forceLoginFallback,
|
||||
factory = VectorFeatures::isForceLoginFallbackEnabled
|
||||
)
|
||||
))
|
||||
}
|
||||
|
||||
|
|
|
@ -54,8 +54,6 @@ class DebugVectorFeatures(
|
|||
override fun isOnboardingPersonalizeEnabled(): Boolean = read(DebugFeatureKeys.onboardingPersonalize)
|
||||
?: vectorFeatures.isOnboardingPersonalizeEnabled()
|
||||
|
||||
override fun isForceLoginFallbackEnabled(): Boolean = read(DebugFeatureKeys.forceLoginFallback) ?: vectorFeatures.isForceLoginFallbackEnabled()
|
||||
|
||||
fun <T> override(value: T?, key: Preferences.Key<T>) = updatePreferences {
|
||||
if (value == null) {
|
||||
it.remove(key)
|
||||
|
@ -108,5 +106,4 @@ object DebugFeatureKeys {
|
|||
val onboardingSplashCarousel = booleanPreferencesKey("onboarding-splash-carousel")
|
||||
val onboardingUseCase = booleanPreferencesKey("onbboarding-splash-carousel")
|
||||
val onboardingPersonalize = booleanPreferencesKey("onbboarding-personalize")
|
||||
val forceLoginFallback = booleanPreferencesKey("force-login-fallback")
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ interface VectorFeatures {
|
|||
fun isOnboardingSplashCarouselEnabled(): Boolean
|
||||
fun isOnboardingUseCaseEnabled(): Boolean
|
||||
fun isOnboardingPersonalizeEnabled(): Boolean
|
||||
fun isForceLoginFallbackEnabled(): Boolean
|
||||
|
||||
enum class OnboardingVariant {
|
||||
LEGACY,
|
||||
|
@ -40,5 +39,4 @@ class DefaultVectorFeatures : VectorFeatures {
|
|||
override fun isOnboardingSplashCarouselEnabled() = true
|
||||
override fun isOnboardingUseCaseEnabled() = true
|
||||
override fun isOnboardingPersonalizeEnabled() = false
|
||||
override fun isForceLoginFallbackEnabled() = false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue