mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3328 Vault | Fix | Disable welcome-to-the-vault tip (#2059)
This commit is contained in:
parent
d88fd568db
commit
9c562edf77
6 changed files with 3 additions and 28 deletions
|
@ -10,6 +10,7 @@ import androidx.compose.ui.platform.ViewCompositionStrategy
|
|||
import com.anytypeio.anytype.core_utils.ui.BaseBottomSheetComposeFragment
|
||||
import com.anytypeio.anytype.ui.settings.typography
|
||||
|
||||
@Deprecated("Outdated. To be deleted soon.")
|
||||
class IntroduceVaultFragment : BaseBottomSheetComposeFragment() {
|
||||
|
||||
override fun onCreateView(
|
||||
|
|
|
@ -34,6 +34,7 @@ import com.anytypeio.anytype.core_ui.views.ButtonSize
|
|||
import com.anytypeio.anytype.core_ui.views.HeadlineHeading
|
||||
import kotlinx.coroutines.launch
|
||||
|
||||
@Deprecated("To be deleted")
|
||||
@Composable
|
||||
fun IntroduceVaultScreen(
|
||||
onDoneClicked: () -> Unit
|
||||
|
|
|
@ -117,13 +117,6 @@ class VaultFragment : BaseComposeFragment() {
|
|||
Timber.e(it, "Error while opening profile settings from vault")
|
||||
}
|
||||
}
|
||||
is Command.ShowIntroduceVault -> {
|
||||
runCatching {
|
||||
findNavController().navigate(R.id.actionShowIntroduceVaultScreen)
|
||||
}.onFailure {
|
||||
Timber.e(it, "Error while opening introduce-vault-screen from vault")
|
||||
}
|
||||
}
|
||||
is Command.Deeplink.Invite -> {
|
||||
findNavController().navigate(
|
||||
R.id.requestJoinSpaceScreen,
|
||||
|
|
|
@ -272,9 +272,6 @@
|
|||
<action
|
||||
android:id="@+id/actionCreateSpaceFromVault"
|
||||
app:destination="@id/createSpaceScreen" />
|
||||
<action
|
||||
android:id="@+id/actionShowIntroduceVaultScreen"
|
||||
app:destination="@id/introduceVaultScreen" />
|
||||
</fragment>
|
||||
|
||||
<dialog
|
||||
|
|
|
@ -5,6 +5,7 @@ import com.anytypeio.anytype.core_models.FALLBACK_DATE_PATTERN
|
|||
import com.anytypeio.anytype.core_models.Id
|
||||
|
||||
data class VaultSettings(
|
||||
@Deprecated("Property to be deleted soon")
|
||||
val showIntroduceVault: Boolean,
|
||||
val orderOfSpaces: List<Id> = emptyList(),
|
||||
val isRelativeDates: Boolean,
|
||||
|
|
|
@ -186,23 +186,6 @@ class VaultViewModel(
|
|||
)
|
||||
)
|
||||
}
|
||||
viewModelScope.launch {
|
||||
getVaultSettings.async(Unit)
|
||||
.onSuccess { settings ->
|
||||
if (settings.showIntroduceVault) {
|
||||
commands.emit(Command.ShowIntroduceVault)
|
||||
setVaultSettings.async(
|
||||
params = settings.copy(
|
||||
showIntroduceVault = false
|
||||
)
|
||||
).onFailure {
|
||||
Timber.e(it, "Error while setting vault settings")
|
||||
}
|
||||
}
|
||||
}.onFailure {
|
||||
Timber.e(it, "Error while getting vault settings")
|
||||
}
|
||||
}
|
||||
viewModelScope.launch {
|
||||
when (deeplink) {
|
||||
is DeepLinkResolver.Action.Import.Experience -> {
|
||||
|
@ -397,7 +380,6 @@ class VaultViewModel(
|
|||
data class EnterSpaceLevelChat(val space: Space, val chat: Id): Command()
|
||||
data object CreateNewSpace: Command()
|
||||
data object OpenProfileSettings: Command()
|
||||
data object ShowIntroduceVault : Command()
|
||||
|
||||
sealed class Deeplink : Command() {
|
||||
data object DeepLinkToObjectNotWorking: Deeplink()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue