Skip to content

Commit 0db672d

Browse files
committed
1 parent 04cb391 commit 0db672d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/android/src/android/_android.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,13 @@ def show_keyboard(target, input_type):
227227
elif input_type == 'address':
228228
_input_type = TYPE_TEXT_VARIATION_POSTAL_ADDRESS
229229

230-
if target.password:
230+
if hasattr(target, 'password') and target.password:
231231
if _input_type == TYPE_CLASS_TEXT:
232232
_input_type |= TYPE_TEXT_VARIATION_PASSWORD
233233
elif _input_type == TYPE_CLASS_NUMBER:
234234
_input_type |= TYPE_NUMBER_VARIATION_PASSWORD
235235

236-
if not target.keyboard_suggestions:
236+
if hasattr(target, 'keyboard_suggestions') and not target.keyboard_suggestions:
237237
if _input_type == TYPE_CLASS_TEXT:
238238
_input_type = TYPE_CLASS_TEXT | \
239239
TYPE_TEXT_FLAG_NO_SUGGESTIONS

0 commit comments

Comments
 (0)