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:
parent
003929c4c2
commit
2d115aa64b
15 changed files with 376 additions and 23 deletions
|
@ -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
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -15,6 +15,7 @@ message VaultPreferences {
|
|||
|
||||
message VaultPreference {
|
||||
repeated string orderOfSpaces = 1;
|
||||
// deprecated
|
||||
bool showIntroduceVault = 2;
|
||||
bool isRelativeDates = 3;
|
||||
optional string dateFormat = 4;
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue