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

App | Minor fixes | Recovery phrase naming (#2241)

This commit is contained in:
Evgenii Kozlov 2022-05-07 14:56:05 +03:00 committed by GitHub
parent 6e5d0dc3d7
commit 8e678c95d4
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -110,7 +110,7 @@ class KeychainPhraseDialog : BaseBottomSheetFragment<DialogKeychainPhraseBinding
)
companion object {
const val MNEMONIC_LABEL = "Your Anytype mnemonic phrase"
const val MNEMONIC_LABEL = "Your Anytype recovery phrase"
const val ARG_SCREEN_TYPE = "arg.keychain.screen.type"
}
}

View file

@ -23,7 +23,6 @@ import com.anytypeio.anytype.R
import com.anytypeio.anytype.core_utils.ext.toast
import com.anytypeio.anytype.core_utils.ui.BaseBottomSheetComposeFragment
import com.anytypeio.anytype.di.common.componentManager
import com.anytypeio.anytype.ui.profile.KeychainPhraseDialog
import com.anytypeio.anytype.ui_settings.about.AboutAppScreen
import com.anytypeio.anytype.ui_settings.about.AboutAppViewModel
import javax.inject.Inject
@ -73,7 +72,7 @@ class AboutAppFragment : BaseBottomSheetComposeFragment() {
val clipboard =
requireContext().getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
val clip =
ClipData.newPlainText(KeychainPhraseDialog.MNEMONIC_LABEL, id)
ClipData.newPlainText("Your Anytype ID", id)
clipboard.setPrimaryClip(clip)
toast("Your Anytype ID is copied to clipboard.")
} catch (e: Exception) {

View file

@ -60,7 +60,7 @@ class DefaultAuthCache(
nonEncryptedMnemonic
} else {
val encryptedMnemonic = encryptedPrefs.getString(MNEMONIC_KEY, null)
encryptedMnemonic ?: throw IllegalStateException("Mnemonic is missing")
encryptedMnemonic ?: throw IllegalStateException("Recovery phrase is missing")
}
}