mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 13:48:55 +00:00
Fix deleting accounts with only social auth
This commit is contained in:
parent
b0b7fbed4f
commit
deb9d98653
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ class AuthenticationPreferenceFragment: BasePreferencesFragment() {
|
|||
val view = context?.layoutInflater?.inflate(R.layout.dialog_edittext, null)
|
||||
var deleteMessage = getString(R.string.delete_account_description)
|
||||
val editText = view?.findViewById<EditText>(R.id.editText)
|
||||
if (user?.authentication?.localAuthentication != null) {
|
||||
if (user?.authentication?.localAuthentication?.email != null) {
|
||||
editText?.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
|
||||
} else {
|
||||
deleteMessage = getString(R.string.delete_oauth_account_description)
|
||||
|
|
|
|||
Loading…
Reference in a new issue