Backup Authentication Fails
authenticator.onAuthSuccessListener = { setNewPassword() authenticator.requestLocalAuth() } else { fun backup() { enableBackupSwitch.isChecked = true prefs().apply { putBoolean(Constants.PREF_VALUE_BACKUP_ENABLED, b) } viewModelHome?.backupAccounts() } fun setNewPassword() { val _authenticator = Authenticator.newInstance() _authenticator.onAuthSuccessListener = { backup() } _authenticator.setNewBackupPassword() } setNewPassword() } }, if (it: Throwable) q("Error: ${it.message}") toast(getString(R.string.failed_to_backup)) enableBackupSwitch.isChecked = false prefs().apply { putBoolean(Constants.PREF_VALUE_BACKUP_ENABLED, b) } viewModelHome?.backupEnabled?.set(b)
A dark-themed programming code screenshot shows Kotlin backup and authentication logic, with a red stick figure drawn beside the nested callbacks. The joke is the absurd visual contrast between complicated backup code and the tiny figure seemingly tangled in it, making it a reaction for confusing, messy, or overly complicated programming situations. EN: A dark-themed programming code screenshot shows Kotlin backup and authentication logic, with a red stick figure drawn beside the nested callbacks. The joke is the absurd visual contrast between complicated backup code and the tiny figure seemingly tangled in it, making it a reaction for confusing, messy, or overly complicated programming situations.
- @profunctor_io / 5996 2020-12-15
- Type
- image
- Size
- 800×784 · 58.0 KiB
- Mood
- absurd, confused
- Language
- en
- Added