summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Steven Terrell <steventerrell@google.com> 2022-05-13 16:10:32 +0000
committer Steven Terrell <steventerrell@google.com> 2022-08-26 20:31:56 +0000
commit4ec6dfc389f0ad529cbf371b785b9698fae32333 (patch)
tree2710e936fbf5a001dfd082571bc187594c7991d7 /libs/androidfw/ResourceTimer.cpp
parent057f721740d14140bfcf27c26cf1da058a718833 (diff)
Stop cursor from blinking when not visible
Cursor continues to blink in a text field even when the text field is not currently visible. This change checks the visibility of the window that houses the text field in addition to checking if the view is in focus. Bug: 228354442 Test: Added logging to the shouldBlink() method ran following steps: 1: open contacts app 2: tap add new contact, tap in an edit field 3: move back to home screen 4: lock screen, then unlock screen 5: observed logs written out to logcat console when app not visible. after change logs no longer printed to console, cursor still blinks correctly after app is re-opened or when new field becomes in focus. Test: CtsWidgetTestCases:EditTextTest# testCursorNotBlinkingOnNewActivity_WithoutFocus() testCursorBlinkingOnNewActivity_WithFocus() testSuspendAndResumeBlinkingCursor() Change-Id: Iad4396e5f7fd810344c711320d65c57ea25eda70 Merged-In: Iad4396e5f7fd810344c711320d65c57ea25eda70
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions