We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04cb391 commit 0db672dCopy full SHA for 0db672d
recipes/android/src/android/_android.pyx
@@ -227,13 +227,13 @@ def show_keyboard(target, input_type):
227
elif input_type == 'address':
228
_input_type = TYPE_TEXT_VARIATION_POSTAL_ADDRESS
229
230
- if target.password:
+ if hasattr(target, 'password') and target.password:
231
if _input_type == TYPE_CLASS_TEXT:
232
_input_type |= TYPE_TEXT_VARIATION_PASSWORD
233
elif _input_type == TYPE_CLASS_NUMBER:
234
_input_type |= TYPE_NUMBER_VARIATION_PASSWORD
235
236
- if not target.keyboard_suggestions:
+ if hasattr(target, 'keyboard_suggestions') and not target.keyboard_suggestions:
237
238
_input_type = TYPE_CLASS_TEXT | \
239
TYPE_TEXT_FLAG_NO_SUGGESTIONS
0 commit comments