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:
parent
6e5d0dc3d7
commit
8e678c95d4
3 changed files with 3 additions and 4 deletions
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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) {
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue