1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3407 App | Tech | New debug menu + allow exporting work directory (#2122)

This commit is contained in:
Evgenii Kozlov 2025-02-27 13:38:02 +01:00 committed by GitHub
parent 003929c4c2
commit 2d115aa64b
Signed by: github
GPG key ID: B5690EEEBB952194
15 changed files with 376 additions and 23 deletions

View file

@ -417,9 +417,8 @@ class DefaultUserSettingsCache(
)
VaultSettings(
orderOfSpaces = curr.orderOfSpaces,
showIntroduceVault = curr.showIntroduceVault,
isRelativeDates = curr.isRelativeDates,
dateFormat = curr.dateFormat ?: appDefaultDateFormatProvider.provide()
dateFormat = curr.dateFormat ?: appDefaultDateFormatProvider.provide(),
)
}
.first()
@ -435,7 +434,6 @@ class DefaultUserSettingsCache(
)
VaultSettings(
orderOfSpaces = curr.orderOfSpaces,
showIntroduceVault = curr.showIntroduceVault,
isRelativeDates = curr.isRelativeDates,
dateFormat = curr.dateFormat ?: appDefaultDateFormatProvider.provide()
)
@ -464,7 +462,6 @@ class DefaultUserSettingsCache(
preferences = existingPreferences.preferences + mapOf(
account.id to VaultPreference(
orderOfSpaces = settings.orderOfSpaces,
showIntroduceVault = settings.showIntroduceVault
)
)
)

View file

@ -15,6 +15,7 @@ message VaultPreferences {
message VaultPreference {
repeated string orderOfSpaces = 1;
// deprecated
bool showIntroduceVault = 2;
bool isRelativeDates = 3;
optional string dateFormat = 4;

View file

@ -362,7 +362,6 @@ class UserSettingsCacheTest {
val vaultSettings = cache.getVaultSettings(account = account)
val expected = VaultSettings(
showIntroduceVault = DEFAULT_SHOW_INTRODUCE_VAULT,
dateFormat = dateFormat,
isRelativeDates = DEFAULT_RELATIVE_DATES
)
@ -399,7 +398,6 @@ class UserSettingsCacheTest {
val vaultSettings = cache.getVaultSettings(account = account)
val expected = VaultSettings(
showIntroduceVault = DEFAULT_SHOW_INTRODUCE_VAULT,
dateFormat = updatedDateFormat,
isRelativeDates = DEFAULT_RELATIVE_DATES
)
@ -435,7 +433,6 @@ class UserSettingsCacheTest {
val vaultSettings = cache.getVaultSettings(account = account)
val expected = VaultSettings(
showIntroduceVault = DEFAULT_SHOW_INTRODUCE_VAULT,
dateFormat = dateFormat,
isRelativeDates = false
)
@ -477,7 +474,6 @@ class UserSettingsCacheTest {
val vaultSettings = cache.getVaultSettings(account = account)
val expected = VaultSettings(
showIntroduceVault = DEFAULT_SHOW_INTRODUCE_VAULT,
dateFormat = updatedDateFormat,
isRelativeDates = false
)